/* Fellowship inner-page styles - extracted from live inline <style> */
        .fellowship-split {
            padding: 40px 0 110px;
        }

        .fellowship-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.48fr);
            gap: 34px;
            align-items: start;
        }

        .fellowship-left .oculoplasty-fellowship-shell {
            margin-bottom: 0;
        }

        .fellowship-form-wrap {
            position: sticky;
            top: 110px;
            padding: 38px 28px;
            background: #d1d1d152;
            border-radius: 10px;
        }

        .fellowship-form-header {
            margin-bottom: 18px;
        }

        .fellowship-form-kicker {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
            padding: 10px 18px;
            border-radius: 8px;
            background: #edf4f7;
            color: #ff4d7e;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .fellowship-form-header h2 {
            margin: 0 0 8px;
            color: #111111;
            font-size: clamp(1.8rem, 2.6vw, 2.35rem);
            line-height: 1.05;
        }

        .fellowship-form-header p {
            margin: 0;
            color: #666666;
            font-size: 0.95rem;
            line-height: 1.6;
            max-width: 520px;
        }

        .fellowship-application-form {
            position: relative;
        }

        .fellowship-application-grid {
            display: grid;
            grid-template-columns: repeat(1, minmax(0, 1fr));
            gap: 16px;
        }

        .fellowship-field,
        .fellowship-field-full {
            position: relative;
        }

        .fellowship-field-full {
            grid-column: 1 / -1;
        }

        .fellowship-field label,
        .fellowship-field-full label {
            display: block;
            margin-bottom: 8px;
            color: #333333;
            font-size: 0.92rem;
            font-weight: 600;
        }

        .fellowship-field input,
        .fellowship-field textarea {
            width: 100%;
            border: 2px solid #e2e2e2;
            border-radius: 14px;
            background: #ffffff;
            padding: 13px 14px;
            color: #263238;
            font-size: 0.96rem;
            transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
            box-shadow: 0 2px 8px rgba(13, 27, 62, 0.06);
        }

        .fellowship-field textarea {
            min-height: 118px;
            resize: vertical;
        }

        .fellowship-field input::placeholder,
        .fellowship-field textarea::placeholder {
            color: #a7a7a7;
        }

        .fellowship-field input:focus,
        .fellowship-field textarea:focus {
            outline: none;
            border-color: #7aa63d;
            box-shadow: 0 0 0 4px rgba(122, 166, 61, 0.12);
            transform: translateY(-1px);
        }

        .fellowship-field.has-error input,
        .fellowship-field.has-error textarea {
            border-color: #d9416f;
            box-shadow: 0 0 0 4px rgba(217, 65, 111, 0.1);
        }

        .fellowship-field.has-success input,
        .fellowship-field.has-success textarea {
            border-color: #5aa469;
        }

        .fellowship-error {
            display: none;
            margin-top: 6px;
            color: #d9416f;
            font-size: 0.82rem;
            line-height: 1.4;
        }

        .fellowship-error.show {
            display: block;
        }

        .fellowship-upload {
            position: relative;
        }

        .fellowship-upload-input {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
            z-index: 2;
        }

        .fellowship-upload-box {
            padding: 8px 12px;
            border: 2px dashed #d9d9d9;
            border-radius: 14px;
            background: #ffffff;
            transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
            text-align: center;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            min-height: 52px;
        }

        .fellowship-upload:hover .fellowship-upload-box,
        .fellowship-upload:focus-within .fellowship-upload-box {
            border-color: #7aa63d;
            box-shadow: 0 0 0 4px rgba(122, 166, 61, 0.1);
            transform: translateY(-1px);
        }

        .fellowship-upload-icon {
            width: 34px;
            height: 34px;
            border-radius: 9px;
            background: #f1f4f8;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ff4d7e;
            font-size: 1rem;
            font-weight: 700;
            flex-shrink: 0;
        }

        .fellowship-upload-title {
            margin-bottom: 0;
            color: #2f2f2f;
            font-size: 0.92rem;
            font-weight: 700;
        }

        .fellowship-upload-name {
            margin: 0;
            color: #2f7d42;
            font-size: 0.8rem;
            font-weight: 700;
            word-break: break-word;
        }

        .fellowship-form-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            margin-top: 18px;
            flex-wrap: wrap;
        }

        .fellowship-submit-btn {
            border: none;
            border-radius: 6px;
            padding: 14px 24px;
            min-width: 190px;
            background: #5e9f2f;
            color: #ffffff;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: none;
            transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
        }

        .fellowship-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 18px rgba(94, 159, 47, 0.2);
        }

        .fellowship-submit-btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .fellowship-form-status {
            display: none;
            margin-top: 20px;
            padding: 14px 18px;
            border-radius: 16px;
            font-size: 0.95rem;
            font-weight: 600;
        }

        .fellowship-form-status.success {
            display: block;
            background: rgba(90, 164, 105, 0.12);
            color: #2f7d42;
        }

        @media (max-width: 1199px) {
            .fellowship-grid {
                grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
                gap: 26px;
            }
        }

        @media (max-width: 991px) {
            .fellowship-split {
                padding: 30px 0 0;
            }

            .fellowship-grid {
                grid-template-columns: 1fr;
            }

            .fellowship-form-wrap {
                position: static;
            }
        }

        @media (max-width: 575px) {
            .fellowship-application-grid {
                grid-template-columns: 1fr;
            }

            .fellowship-form-footer {
                align-items: stretch;
            }

            .fellowship-submit-btn {
                width: 100%;
                min-width: 0;
            }
        }

/* ============================================================
   Fellowship application form - FormBuilder (fellowship-enquiry) styling.
   Rendered inside .fellowship-fb-form (in the light .fellowship-form-wrap).
   Matches the live light form: single-column, white rounded inputs, green
   focus, dashed upload box, green submit. FB Basic markup:
   form.FormBuilder > .Inputfields > .Inputfield > .InputfieldHeader (label) +
   .InputfieldContent (field). !important beats FormBuilder's framework CSS
   which loads after this file.
   ============================================================ */

.fellowship-fb-form .FormBuilder { position: relative; z-index: 2; }
.fellowship-fb-form .FormBuilder .Inputfields,
.fellowship-fb-form .FormBuilder .Inputfields .Inputfield {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Single column, even spacing (all fields full width - matches live). */
.fellowship-fb-form .FormBuilder .Inputfields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.fellowship-fb-form .FormBuilder .Inputfield { margin: 0; }

/* SHOW field labels (the live fellowship form uses labels, not placeholders).
   Style them like the live .fellowship-field label: block, small gap, dark. */
.fellowship-fb-form .FormBuilder .Inputfield > .InputfieldHeader,
.fellowship-fb-form .FormBuilder label.InputfieldHeader {
    display: block;
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 8px;
    padding: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
    font-size: 0.95rem;
    font-weight: 600;
    color: #263238;
}

/* Hide FB's top error summary (per-field inline errors kept). */
.fellowship-fb-form .FormBuilder .FormBuilderErrors,
.fellowship-fb-form .FormBuilder .NoticeErrors,
.fellowship-fb-form .FormBuilder ul.pw-errors {
    display: none !important;
}

/* White rounded inputs + textarea (live look). */
.fellowship-fb-form .FormBuilder.InputfieldForm input[type="text"],
.fellowship-fb-form .FormBuilder.InputfieldForm input[type="email"],
.fellowship-fb-form .FormBuilder.InputfieldForm input[type="tel"],
.fellowship-fb-form .FormBuilder.InputfieldForm input[type="number"],
.fellowship-fb-form .FormBuilder.InputfieldForm textarea {
    width: 100%;
    border: 2px solid #e2e2e2 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    padding: 13px 14px !important;
    color: #263238 !important;
    height: auto !important;
    font-size: 0.96rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(13, 27, 62, 0.06);
}
.fellowship-fb-form .FormBuilder.InputfieldForm textarea {
    min-height: 118px;
    resize: vertical;
}
.fellowship-fb-form .FormBuilder.InputfieldForm input::placeholder,
.fellowship-fb-form .FormBuilder.InputfieldForm textarea::placeholder {
    color: #a7a7a7;
}
.fellowship-fb-form .FormBuilder.InputfieldForm input:focus,
.fellowship-fb-form .FormBuilder.InputfieldForm textarea:focus {
    border-color: #7aa63d !important;
    box-shadow: 0 0 0 4px rgba(122, 166, 61, 0.12) !important;
    background: #ffffff !important;
    color: #263238 !important;
}
.fellowship-fb-form .FormBuilder.InputfieldForm .InputfieldStateError input,
.fellowship-fb-form .FormBuilder.InputfieldForm .InputfieldStateError textarea {
    border-color: #d9416f !important;
}

/* CV upload box (built by formbuilder-captcha.js as .fb-upload-box).
   Live fellowship = COMPACT single row: pink icon chip on the left + text on
   the right (not the big centred career-style box). */
.fellowship-fb-form .fb-upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    border: 2px dashed #d9d9d9;
    background: #ffffff;
    color: #2f2f2f;
    padding: 9px 12px;
    min-height: 52px;
    border-radius: 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.fellowship-fb-form .fb-upload-box:hover {
    border-color: #7aa63d;
    box-shadow: 0 0 0 4px rgba(122, 166, 61, 0.1);
}
/* Icon chip on the left (like the live "+" chip). */
.fellowship-fb-form .fb-upload-box .upload-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f1f4f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff4d7e;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
}
.fellowship-fb-form .fb-upload-box .fb-upload-text {
    margin: 0;
    color: #2f7d42;
    font-size: 0.8rem;
    font-weight: 700;
    word-break: break-word;
}

/* Per-field inline error. */
.fellowship-fb-form .FormBuilder .input-error,
.fellowship-fb-form .FormBuilder .InputfieldError {
    color: #d9416f;
    font-size: 0.82rem;
    margin-top: 6px;
    list-style: none;
    padding: 0;
}

/* Refresh Button */
.fellowship-fb-form .FormBuilder.InputfieldForm .math-captcha-refresh {
    background: #ffffff !important;
    color: #c21048 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    width: 44px !important;
    height: 44px !important;
}

/* Injected math captcha spacing (light form -> default label colour is fine). */
.fellowship-fb-form .FormBuilder .fb-captcha-row { margin: 4px 0 12px; }
.fellowship-fb-form .fb-captcha-error {
    color: #d9416f;
    font-size: 0.82rem;
    margin-top: 6px;
}

/* Submit -> green theme button (live .fellowship-submit-btn). */
.fellowship-fb-form .FormBuilder.InputfieldForm .InputfieldSubmit button,
.fellowship-fb-form .FormBuilder.InputfieldForm button[type="submit"],
.fellowship-fb-form .FormBuilder.InputfieldForm input[type="submit"] {
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    min-width: 190px;
    background: #5e9f2f !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fellowship-fb-form .FormBuilder.InputfieldForm .InputfieldSubmit button:hover,
.fellowship-fb-form .FormBuilder.InputfieldForm button[type="submit"]:hover,
.fellowship-fb-form .FormBuilder.InputfieldForm input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(94, 159, 47, 0.2);
    background: #5e9f2f !important;
}

/* Success message after redirect (?fellowsent=1) on the light section. */
.fellowship-fb-form .fb-success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef8e6;
    border: 1px solid #cfe8bd;
    color: #2f6b12;
    padding: 18px 22px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.6;
}
.fellowship-fb-form .fb-success-message i {
    color: #498e22;
    font-size: 20px;
}
