/* EP Sports – Form Locker Pro
   Updated with table/card layout for children, improved visuals, and form-lock styling */

/* -----------------------------
   PLACEHOLDER BLOCK (Hidden Form)
------------------------------ */
.ep-form-placeholder {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 14px;
    color: #444;
    margin-top: 10px;
}

/* -----------------------------
   READONLY / LOCKED FIELDS
------------------------------ */
.ep-readonly-field {
    background: #f3f4f6 !important;
    color: #555 !important;
    cursor: not-allowed !important;
}

.ep-select-locked {
    background: #f3f4f6 !important;
    color: #555 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.ep-radio-locked+label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* -----------------------------
   ENROLL PANEL – BASE SPACING
------------------------------ */
.ep-enroll-wrapper {
    margin-bottom: 16px;
}

.ep-enroll-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* -----------------------------
   NEW CARD/TABLE STYLE FOR CHILDREN
------------------------------ */
.ep-enroll-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 0;
    margin-bottom: 20px;
}

.ep-enroll-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.ep-enroll-row:last-child {
    border-bottom: none;
}

.ep-enroll-child {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.ep-enroll-action {
    text-align: right;
}

/* Main blue button */
.ep-enroll-btn-primary {
    display: inline-block;
    background: #1071B4;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.ep-enroll-btn-primary:hover {
    background: #0d5f94;
}

/* Secondary button */
.ep-enroll-btn-secondary {
    display: inline-block;
    background: #f0f0f0;
    color: #333 !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.ep-enroll-btn-secondary:hover {
    background: #e6e6e6;
}

/* -----------------------------
   AUTOFILL BANNER PRO (UPDATED)
------------------------------ */
.ep-autofill-banner {
    background: #f1f6ff;
    /* Soft light blue */
    border-left: 4px solid #204CE5;
    /* EP Sports blue */
    padding: 16px 20px;
    margin: 18px 0 25px;
    border-radius: 6px;
    font-size: 15px;
    color: #1d2a40;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* ICON */
.ep-autofill-banner::before {
    content: "🔒";
    font-size: 24px;
    line-height: 1;
    margin-top: 3px;
}

/* Banner Text */
.ep-autofill-banner p {
    margin: 0 0 6px;
    padding: 0;
}

/* Secondary note */
.ep-autofill-note {
    margin-top: 6px;
    font-weight: 400;
    font-size: 14px;
    opacity: 0.8;
}

/* Banner Link */
.ep-autofill-banner a {
    font-weight: 600;
    color: #204CE5;
    text-decoration: underline;
    cursor: pointer;
}

.ep-autofill-banner a:hover {
    color: #1636a4;
}

/* -----------------------------
   SMALL TEXTS
------------------------------ */
.ep-enroll-text {
    margin-bottom: 10px;
    font-size: 14px;
    color: #444;
}






.ep-child-popup {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 999999;
}

.ep-child-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.ep-child-popup-inner {
    position: relative;
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    z-index: 10;
}

.ep-child-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #000;
    color: #fff;
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

#ep-edit-child-form-container {
    margin-top: 15px;
}