/* ============================================================
   TMC Volunteer Form — Complete Style Overhaul v1.4.0
   Brand: TMC Dark Blue #1A2E5A | TMC Gold #C9A84C | Cream #F5F0E8
   ============================================================ */

/* ----------------------------------------------------------
   OUTER SECTION WRAPPER
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 {
    background: linear-gradient(160deg, #0f1e3d 0%, #1A2E5A 60%, #0f1e3d 100%) !important;
    padding: 60px 24px !important;
}

/* ----------------------------------------------------------
   FORM CARD
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 .elementor-widget-form {
    background: rgba(15, 30, 61, 0.85);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: 14px;
    padding: 48px 56px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.55);
    max-width: 860px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ----------------------------------------------------------
   FIELD WRAPPER ROW SPACING
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 .elementor-form-fields-wrapper {
    gap: 0;
    margin: 0 -8px;
}

.elementor-element-ade3ef8 .elementor-field-group {
    padding: 0 8px !important;
    margin-bottom: 22px;
    box-sizing: border-box;
}

/* ----------------------------------------------------------
   LABELS
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 .elementor-field-label {
    color: #C9A84C !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
    display: block;
}

.elementor-element-ade3ef8 .elementor-mark-required .elementor-field-label::after {
    color: #B94A2C !important;
}

/* ----------------------------------------------------------
   TEXT / EMAIL / TEL INPUTS
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 .elementor-field-textual {
    background: rgba(255,255,255,0.06) !important;
    border: 1.5px solid rgba(201,168,76,0.3) !important;
    border-radius: 8px !important;
    color: #F5F0E8 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    padding: 13px 16px !important;
    width: 100% !important;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.elementor-element-ade3ef8 .elementor-field-textual::placeholder {
    color: rgba(245,240,232,0.3) !important;
}

.elementor-element-ade3ef8 .elementor-field-textual:focus {
    border-color: #C9A84C !important;
    background: rgba(201,168,76,0.07) !important;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15) !important;
}

/* ----------------------------------------------------------
   TEXTAREA
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 textarea.elementor-field-textual {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

/* ----------------------------------------------------------
   SHARED: CHECKBOX + RADIO SUBGROUP CONTAINER
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 .elementor-field-type-checkbox .elementor-field-subgroup,
.elementor-element-ade3ef8 .elementor-field-type-radio .elementor-field-subgroup {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(201,168,76,0.2);
    border-radius: 8px;
    box-sizing: border-box;
}

/* ----------------------------------------------------------
   SHARED: OPTION ROWS
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 .elementor-field-type-checkbox .elementor-field-option,
.elementor-element-ade3ef8 .elementor-field-type-radio .elementor-field-option {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 calc(50% - 8px);
    min-width: calc(50% - 8px);
    cursor: pointer;
}

.elementor-element-ade3ef8 .elementor-field-type-checkbox label,
.elementor-element-ade3ef8 .elementor-field-type-radio label {
    color: #F5F0E8 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}

/* ----------------------------------------------------------
   CHECKBOX — custom square tick
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 .elementor-field-type-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(201,168,76,0.45);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.elementor-element-ade3ef8 .elementor-field-type-checkbox input[type="checkbox"]:checked {
    background: #C9A84C;
    border-color: #C9A84C;
}

.elementor-element-ade3ef8 .elementor-field-type-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid #1A2E5A;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.elementor-element-ade3ef8 .elementor-field-type-checkbox input[type="checkbox"]:focus {
    outline: 2px solid rgba(201,168,76,0.5);
    outline-offset: 2px;
}

/* ----------------------------------------------------------
   RADIO — custom circle dot
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 .elementor-field-type-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(201,168,76,0.45);
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
}

.elementor-element-ade3ef8 .elementor-field-type-radio input[type="radio"]:checked {
    border-color: #C9A84C;
    background: rgba(201,168,76,0.08);
}

.elementor-element-ade3ef8 .elementor-field-type-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 8px;
    height: 8px;
    background: #C9A84C;
    border-radius: 50%;
}

.elementor-element-ade3ef8 .elementor-field-type-radio input[type="radio"]:focus {
    outline: 2px solid rgba(201,168,76,0.5);
    outline-offset: 2px;
}

.elementor-element-ade3ef8 .elementor-field-type-radio .elementor-field-option {
    flex: 1 1 auto;
    min-width: auto;
}

/* ----------------------------------------------------------
   ACCEPTANCE / GDPR
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 .elementor-field-type-acceptance {
    background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.22);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 4px;
}

.elementor-element-ade3ef8 .elementor-field-type-acceptance .elementor-field-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.elementor-element-ade3ef8 .elementor-field-type-acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(201,168,76,0.45);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.elementor-element-ade3ef8 .elementor-field-type-acceptance input[type="checkbox"]:checked {
    background: #C9A84C;
    border-color: #C9A84C;
}

.elementor-element-ade3ef8 .elementor-field-type-acceptance input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid #1A2E5A;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.elementor-element-ade3ef8 .elementor-field-type-acceptance label {
    color: rgba(245,240,232,0.7) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.55;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}

/* ----------------------------------------------------------
   VALIDATION ERRORS
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 .elementor-message.elementor-message-danger {
    color: #ff7b6b !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 12px !important;
    margin-top: 5px;
}

/* ----------------------------------------------------------
   SUBMIT BUTTON
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 .elementor-button[type="submit"] {
    background: #C9A84C !important;
    color: #1A2E5A !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px 48px !important;
    width: 100%;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(201,168,76,0.32);
    margin-top: 8px;
}

.elementor-element-ade3ef8 .elementor-button[type="submit"]:hover {
    background: #b8943e !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,168,76,0.45);
}

.elementor-element-ade3ef8 .elementor-button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(201,168,76,0.22);
}

/* ----------------------------------------------------------
   SUCCESS / ERROR BANNERS
   ---------------------------------------------------------- */
.elementor-element-ade3ef8 .elementor-message-success {
    background: rgba(22,163,74,0.14) !important;
    border: 1px solid rgba(22,163,74,0.38) !important;
    color: #86efac !important;
    border-radius: 8px;
    padding: 14px 18px;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px !important;
}

.elementor-element-ade3ef8 .elementor-message-error {
    background: rgba(220,38,38,0.11) !important;
    border: 1px solid rgba(220,38,38,0.32) !important;
    color: #fca5a5 !important;
    border-radius: 8px;
    padding: 14px 18px;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px !important;
}

/* ----------------------------------------------------------
   CONDITIONAL FIELDS — hidden by default, animated reveal
   ---------------------------------------------------------- */
.tmc-student-field,
.tmc-sub-exp {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

.tmc-student-field.is-visible,
.tmc-sub-exp.is-visible {
    max-height: 800px;
    opacity: 1;
    margin-bottom: 22px !important;
    pointer-events: auto;
}

/* Sub-experience fields — indented with gold left border */
.tmc-sub-exp.is-visible {
    border-left: 3px solid rgba(201,168,76,0.5);
    padding-left: 16px !important;
    margin-left: 8px !important;
}

.tmc-sub-exp.is-visible .elementor-field-label {
    color: rgba(201,168,76,0.8) !important;
    font-size: 11px !important;
}

.tmc-sub-exp.is-visible .elementor-field-subgroup {
    background: rgba(201,168,76,0.04) !important;
    border-color: rgba(201,168,76,0.12) !important;
}

/* ----------------------------------------------------------
   TABLET — 768px–1024px
   ---------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-element-ade3ef8 .elementor-widget-form {
        padding: 36px 32px;
    }
    .elementor-element-ade3ef8 {
        padding: 48px 20px !important;
    }
}

/* ----------------------------------------------------------
   MOBILE — max-width: 767px
   ---------------------------------------------------------- */
@media (max-width: 767px) {
    .elementor-element-ade3ef8 {
        padding: 32px 12px !important;
    }
    .elementor-element-ade3ef8 .elementor-widget-form {
        padding: 28px 18px;
        border-radius: 10px;
    }
    .elementor-element-ade3ef8 .elementor-form-fields-wrapper {
        margin: 0;
    }
    .elementor-element-ade3ef8 .elementor-field-group {
        padding: 0 !important;
        margin-bottom: 16px;
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    .elementor-element-ade3ef8 .elementor-field-type-checkbox .elementor-field-option,
    .elementor-element-ade3ef8 .elementor-field-type-radio .elementor-field-option {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .elementor-element-ade3ef8 .elementor-field-type-checkbox .elementor-field-subgroup,
    .elementor-element-ade3ef8 .elementor-field-type-radio .elementor-field-subgroup {
        gap: 10px;
        padding: 12px 14px;
    }
    .elementor-element-ade3ef8 .elementor-field-textual {
        font-size: 16px !important;
        padding: 12px 14px !important;
    }
    .elementor-element-ade3ef8 .elementor-button[type="submit"] {
        padding: 15px 24px !important;
        font-size: 15px !important;
    }
    .tmc-sub-exp.is-visible {
        margin-left: 0 !important;
        padding-left: 12px !important;
    }
}
