/* ==========================================================
   KESA — FULL MEMBERSHIP SECTION THEME
   Scoped to #full only
   ========================================================== */

/* ---------- SCOPED VARIABLES ---------- */
#full {
    --kesa-navy:   #0d3b66;
    --kesa-blue:   #1a5f9e;
    --kesa-gold:   #f4a261;
    --kesa-green:  #2a9d8f;
    --kesa-purple: #6d5bd0;
    --kesa-red:    #e63946;
    --kesa-bg:     #ffffff;
    --kesa-text:   #1a2332;
    --kesa-muted:  #6b7c93;
    --kesa-line:   rgba(13, 59, 102, 0.12);

    background: #ffffff;
    border: 1.5px solid rgba(13, 59, 102, 0.18);
    border-radius: 24px;
    box-shadow:
        0 30px 70px -20px rgba(13, 59, 102, 0.18),
        0 4px 12px rgba(13, 59, 102, 0.05);
    padding: 40px 36px 34px;
    position: relative;
    overflow: hidden;
    animation: fm-enter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 10px;
}

/* Ambient gradient orbs — very subtle on white */
#full::before,
#full::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}
#full::before {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(244,162,97,.55), transparent 70%);
    top: -140px; left: -120px;
    animation: fm-float 14s ease-in-out infinite;
}
#full::after {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(109,91,208,.45), transparent 70%);
    bottom: -180px; right: -160px;
    animation: fm-float 18s ease-in-out infinite reverse;
}

@keyframes fm-float {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(40px,-30px) scale(1.08); }
}

@keyframes fm-enter {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ---------- FLOWING GRADIENT TOP BAR ---------- */
#full .fm-banner {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        var(--kesa-gold),
        var(--kesa-purple),
        var(--kesa-blue),
        var(--kesa-green),
        var(--kesa-gold));
    background-size: 300% 100%;
    animation: fm-banner-flow 7s linear infinite;
    border-radius: 24px 24px 0 0;
}
@keyframes fm-banner-flow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ---------- HEADER ---------- */
#full > h1 {
    position: relative;
    z-index: 1;
    color: var(--kesa-navy) !important;
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.4px;
    text-align: left !important;
    margin: 8px 0 6px !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
#full > h1::before {
    content: '';
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff8ef, #fef1e0);
    box-shadow:
        inset 0 2px 10px rgba(244, 162, 97, 0.25),
        0 6px 20px rgba(244, 162, 97, 0.18);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23f4a261' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
#full > h1::after {
    content: 'Join KESA — complete the form below to create your account.';
    display: block;
    flex-basis: 100%;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--kesa-muted);
    letter-spacing: 0;
    margin-left: 58px;
    margin-top: -6px;
}

/* ---------- FORM ROWS ---------- */
#full .form-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 22px;
    margin-bottom: 6px;
}
#full .form-row + .form-row {
    margin-top: 4px;
}

/* ---------- FORM GROUPS ---------- */
#full .form-group {
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
#full .form-group.col-md-2 { flex: 1 1 100px; min-width: 100px; }
#full .form-group.col-md-3 { flex: 1 1 150px; min-width: 150px; }
#full .form-group.col-md-4 { flex: 1 1 180px; min-width: 180px; }
#full .form-group.col-md-5 { flex: 1 1 200px; min-width: 200px; }
#full .form-group.col-md-7 { flex: 1 1 100%; }

/* ---------- LABELS ---------- */
#full .form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--kesa-navy);
    letter-spacing: 0.2px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
/* #full .required-label::after {
    content: '*';
    color: var(--kesa-red);
    font-weight: 800;
    margin-left: 2px;
} */

/* ---------- INPUTS / SELECTS / TEXTAREAS ---------- */
#full .form-control,
#full input[type="text"],
#full input[type="email"],
#full input[type="date"],
#full input[type="file"],
#full select,
#full textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 0.88rem;
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--kesa-text);
    background: #ffffff;
    border: 1.5px solid rgba(13, 59, 102, 0.22);
    border-radius: 11px;
    transition: all 0.2s;
    outline: none;
    line-height: 1.4;
    box-sizing: border-box;
}
#full select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7c93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 38px;
    height: auto !important;
}
#full textarea {
    resize: vertical;
    min-height: 80px;
}
#full .form-control:focus,
#full input:focus,
#full select:focus,
#full textarea:focus {
    border-color: var(--kesa-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 95, 158, 0.12);
}
#full input[type="file"] {
    padding: 10px 14px;
    background: #ffffff;
    cursor: pointer;
}
#full input[type="file"]::file-selector-button {
    background: var(--kesa-navy);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    font-family: inherit;
}

/* ---------- RADIO INLINE ---------- */
#full .form-group label[for="DISABILITY_YES"],
#full .form-group label[for="DISABILITY_NO"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--kesa-text);
    margin-right: 14px;
    cursor: pointer;
}
#full input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(13, 59, 102, 0.25);
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
    position: relative;
}
#full input[type="radio"]:checked {
    border-color: var(--kesa-blue);
    background: var(--kesa-blue);
    box-shadow: inset 0 0 0 3px #fff;
}
#full input[type="radio"]:focus-visible {
    outline: 2px solid var(--kesa-gold);
    outline-offset: 2px;
}

/* ---------- DISABILITY TYPE ---------- */
#full #disability_type {
    position: relative;
    z-index: 1;
    margin: 6px 0;
    padding: 14px 16px;
    background: #ffffff;
    border: 1.5px dashed rgba(13, 59, 102, 0.22);
    border-radius: 12px;
}

/* ---------- ERROR MESSAGES ---------- */
#full .error,
#full .text-danger {
    font-size: 0.75rem;
    color: var(--kesa-red);
    font-weight: 500;
    margin-top: 4px;
}

/* ---------- DECLARATION CHECKBOX ---------- */
#full .form-check {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0 26px;
    padding: 16px 18px;
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid rgba(13, 59, 102, 0.18);
    transition: border-color 0.2s;
}
#full .form-check:focus-within {
    border-color: var(--kesa-blue);
    box-shadow: 0 0 0 4px rgba(26, 95, 158, 0.08);
}
#full .form-check-input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(13, 59, 102, 0.22);
    border-radius: 5px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    margin-top: 2px;
}
#full .form-check-input:checked {
    background: var(--kesa-blue);
    border-color: var(--kesa-blue);
}
#full .form-check-input:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
#full .form-check-input:focus-visible {
    outline: 2px solid var(--kesa-gold);
    outline-offset: 2px;
}
#full .form-check-label {
    font-size: 0.83rem;
    color: var(--kesa-text);
    line-height: 1.55;
    cursor: pointer;
}

/* ==========================================================
   M-PESA INFO BLOCK
   ========================================================== */

#full .fm-mpesa {
    position: relative;
    z-index: 1;
    margin: 8px 0 28px;
    border-radius: 20px;
    background: #ffffff;
    border: 1.5px solid rgba(13, 59, 102, 0.18);
    box-shadow:
        0 20px 45px -22px rgba(13, 59, 102, 0.18),
        0 2px 8px rgba(13, 59, 102, 0.04);
    overflow: hidden;
    animation: fm-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header */
#full .fm-mpesa-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
    border-bottom: 1px solid rgba(13, 59, 102, 0.12);
    flex-wrap: wrap;
}

#full .fm-mpesa-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00A859 0%, #008545 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px -6px rgba(0, 168, 89, 0.45);
    flex-shrink: 0;
}

#full .fm-mpesa-logo-text {
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

#full .fm-mpesa-header-text {
    flex: 1 1 auto;
    min-width: 180px;
}

#full .fm-mpesa-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--kesa-navy);
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}

#full .fm-mpesa-title i {
    color: var(--kesa-blue);
    font-size: 1.1rem;
}

#full .fm-mpesa-subtitle {
    font-size: 0.82rem;
    color: var(--kesa-muted);
    margin: 0;
    line-height: 1.5;
}

#full .fm-mpesa-subtitle strong {
    color: var(--kesa-green);
    font-weight: 700;
}

/* Status pill */
#full .fm-mpesa-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(244, 162, 97, 0.15);
    color: #c96a2a;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}

#full .fm-mpesa-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--kesa-gold);
    box-shadow: 0 0 6px var(--kesa-gold);
    animation: fm-blink 1.4s ease-in-out infinite;
}

@keyframes fm-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* Body */
#full .fm-mpesa-body {
    padding: 22px 24px 24px;
}

/* Summary grid */
#full .fm-mpesa-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

#full .fm-mpesa-summary-item {
    background: #ffffff;
    border: 1px dashed rgba(13, 59, 102, 0.22);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.2s, background 0.2s;
}

#full .fm-mpesa-summary-item:hover {
    border-color: var(--kesa-blue);
    background: #f8fbff;
}

#full .fm-mpesa-summary-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--kesa-muted);
}

#full .fm-mpesa-summary-label i {
    color: var(--kesa-blue);
    font-size: 0.85rem;
}

#full .fm-mpesa-summary-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--kesa-navy);
    letter-spacing: -0.2px;
    word-break: break-all;
}

#full .fm-mpesa-amount {
    color: var(--kesa-green);
    font-size: 1.05rem;
}

/* Steps */
#full .fm-mpesa-steps {
    margin-bottom: 18px;
}

#full .fm-mpesa-steps-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--kesa-navy);
    margin: 0 0 14px;
}

#full .fm-mpesa-steps-title i {
    color: var(--kesa-blue);
    font-size: 1rem;
}

#full .fm-mpesa-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#full .fm-mpesa-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--kesa-text);
    line-height: 1.55;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(13, 59, 102, 0.10);
    border-left: 3px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}

#full .fm-mpesa-steps-list li:hover {
    background: #f8fbff;
    border-left-color: var(--kesa-gold);
}

#full .fm-mpesa-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--kesa-navy);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 3px 8px rgba(13, 59, 102, 0.2);
}

#full .fm-mpesa-steps-list code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(13, 59, 102, 0.07);
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 700;
    color: var(--kesa-navy);
    font-size: 0.8rem;
}

/* Footer */
#full .fm-mpesa-footer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.10), rgba(244, 162, 97, 0.04));
    border-left: 4px solid var(--kesa-gold);
    border-radius: 10px;
    font-size: 0.83rem;
    color: var(--kesa-text);
    line-height: 1.55;
    margin: 0;
}

#full .fm-mpesa-footer i {
    color: var(--kesa-gold);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

#full .fm-mpesa-footer strong {
    color: var(--kesa-navy);
    font-weight: 700;
}

/* ==========================================================
   SUBMIT BUTTON — Bootstrap primary background
   ========================================================== */
#full button[type="submit"] {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 28px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--bs-primary, #0d6efd);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.25);
    letter-spacing: 0.3px;
    line-height: 1.2;
    min-height: 40px;
}
#full button[type="submit"]:hover {
    background: var(--bs-primary-hover, #0b5ed7);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
}
#full button[type="submit"]:active {
    transform: translateY(0);
    background: #0a58ca;
}
#full button[type="submit"]::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cline x1='20' y1='8' x2='20' y2='14'/%3E%3Cline x1='23' y1='11' x2='17' y2='11'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 820px) {
    #full {
        padding: 28px 20px 24px;
        border-radius: 18px;
    }
    #full > h1 {
        font-size: 1.3rem !important;
    }
    #full > h1::before {
        width: 38px;
        height: 38px;
        background-size: 18px;
    }
    #full > h1::after {
        margin-left: 50px;
        font-size: 0.8rem;
    }
    #full .form-row {
        gap: 14px;
    }
    #full .form-group {
        flex: 1 1 100%;
    }
    #full .form-group.col-md-2,
    #full .form-group.col-md-3,
    #full .form-group.col-md-4,
    #full .form-group.col-md-5 {
        flex: 1 1 100px;
    }

    /* M-Pesa header/body tightening */
    #full .fm-mpesa-header { padding: 16px 18px; }
    #full .fm-mpesa-body   { padding: 18px 18px 20px; }
    #full .fm-mpesa-logo   { width: 50px; height: 50px; }
    #full .fm-mpesa-logo-text { font-size: 0.62rem; }
    #full .fm-mpesa-title  { font-size: 0.95rem; }
    #full .fm-mpesa-summary { grid-template-columns: 1fr; }
    #full .fm-mpesa-pill   { font-size: 0.62rem; }
}

@media (max-width: 480px) {
    #full {
        padding: 22px 14px 20px;
        border-radius: 14px;
    }
    #full > h1 {
        font-size: 1.15rem !important;
    }
    #full > h1::before {
        width: 32px;
        height: 32px;
        background-size: 15px;
    }
    #full > h1::after {
        margin-left: 44px;
        font-size: 0.75rem;
    }
    #full .form-check {
        padding: 14px 12px;
    }

    /* M-Pesa steps tightening */
    #full .fm-mpesa-steps-list li {
        font-size: 0.8rem;
        padding: 9px 12px;
    }
    #full .fm-mpesa-step-num {
        width: 22px;
        height: 22px;
        font-size: 0.66rem;
    }
}

/* Asterisk at the START of the label text (right next to the checkbox) */
#full .form-check-label.required-label::before {
    content: '*';
    color: var(--kesa-red);
    font-weight: 800;
    margin-right: 4px;
}

/* Don't append another asterisk at the end */
#full .form-check-label.required-label::after {
    content: none;
}