/* ============================================================
   DigiTwow Application Form — Frontend Styles
   Brand palette:
     Navy bg   : #0D1B35
     Navy card : #0F2044
     Blue text : #3B82F6  (accent / links)
     Orange CTA: #F97316
     White text: #FFFFFF
     Muted text: rgba(255,255,255,0.65)
     Border    : rgba(255,255,255,0.12)
   ============================================================ */

/* ── Section wrapper ──────────────────────────────────────── */
.dw-form-section {
    background: #0D1B35;
    padding: 80px 20px;
    width: 100%;
    box-sizing: border-box;
}

.dw-form-container {
    max-width: 780px;
    margin: 0 auto;
}

/* ── Header ───────────────────────────────────────────────── */
.dw-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.dw-form-headline {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.dw-form-subheadline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.70);
    margin: 0 0 24px;
    line-height: 1.6;
}

.dw-form-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.30);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.80);
    text-align: left;
    line-height: 1.55;
}

.dw-form-notice__icon {
    flex-shrink: 0;
    color: #3B82F6;
    font-size: 1.1rem;
    margin-top: 1px;
}

/* ── Form card ────────────────────────────────────────────── */
.dw-form {
    background: #0F2044;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* ── Grid layout ─────────────────────────────────────────── */
.dw-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.dw-form__group--full {
    grid-column: 1 / -1;
}

/* ── Labels ──────────────────────────────────────────────── */
.dw-form__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 7px;
}

.dw-form__label--sub {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.60);
    margin-top: 14px;
}

.dw-required {
    color: #F97316;
}

/* ── Inputs & Selects ────────────────────────────────────── */
.dw-form__input,
.dw-form__select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 0.95rem;
    color: #FFFFFF;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.dw-form__input::placeholder {
    color: rgba(255, 255, 255, 0.30);
}

.dw-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
    cursor: pointer;
}

.dw-form__select option {
    background: #0F2044;
    color: #FFFFFF;
}

.dw-form__input:focus,
.dw-form__select:focus {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.dw-form__input.dw-error,
.dw-form__select.dw-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

/* ── Conditional fields ─────────────────────────────────── */
.dw-conditional-field {
    margin-top: 4px;
}

.dw-conditional-field[hidden] {
    display: none;
}

/* ── Response area ───────────────────────────────────────── */
.dw-form__response {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dw-form__response[hidden] {
    display: none;
}

.dw-form__response--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
}

.dw-form__response--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86EFAC;
}

/* ── Submit area ─────────────────────────────────────────── */
.dw-form__submit-wrap {
    margin-top: 28px;
    text-align: center;
}

.dw-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #F97316;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
    min-width: 240px;
}

.dw-form__submit:hover {
    background: #EA6C0A;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.45);
}

.dw-form__submit:active {
    transform: translateY(0);
}

.dw-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.dw-btn-spinner svg {
    animation: dw-spin 0.8s linear infinite;
}

@keyframes dw-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Footnote ────────────────────────────────────────────── */
.dw-form__footnote {
    margin-top: 14px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.40);
    line-height: 1.5;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .dw-form-section {
        padding: 50px 16px;
    }

    .dw-form {
        padding: 28px 20px;
    }

    .dw-form__grid {
        grid-template-columns: 1fr;
    }

    .dw-form__group--full {
        grid-column: 1;
    }

    .dw-form__submit {
        width: 100%;
        min-width: unset;
    }
}
