/**
 * EBA Contact — 2-column page widget with 3-step form.
 * Responsive: 2-col desktop, stacked tablet/mobile.
 */

.eba-wrapper.eba-ct {
    padding: 64px 0 96px;
    background: #fafaf7;
    font-family: 'Inter', system-ui, sans-serif;
}
.eba-wrapper.eba-ct .eba-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.eba-wrapper.eba-ct .eba-ct__layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 48px;
    align-items: start;
}

/* ============================================================
 * LEFT: INFO COLUMN
 * ============================================================ */
.eba-wrapper.eba-ct .eba-ct__info-heading {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600;
    font-size: 1.75rem;
    color: #0f172a !important;
    margin: 0 0 28px;
    letter-spacing: -0.005em;
}

.eba-wrapper.eba-ct .eba-ct__info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}
.eba-wrapper.eba-ct .eba-ct__info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(212, 162, 76, 0.12);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d4a24c;
}
.eba-wrapper.eba-ct .eba-ct__info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}
.eba-wrapper.eba-ct .eba-ct__info-text strong {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}
.eba-wrapper.eba-ct .eba-ct__info-text a,
.eba-wrapper.eba-ct .eba-ct__info-text span {
    font-size: 13.5px;
    color: #64748b !important;
    text-decoration: none;
}
.eba-wrapper.eba-ct .eba-ct__info-text a:hover { color: #d4a24c !important; }

.eba-wrapper.eba-ct .eba-ct__response {
    margin-top: 28px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #eee9df;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.eba-wrapper.eba-ct .eba-ct__response-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600;
    font-size: 1.125rem;
    color: #0f172a !important;
    margin: 0 0 8px;
}
.eba-wrapper.eba-ct .eba-ct__response-body {
    font-size: 13px;
    line-height: 1.55;
    color: #64748b !important;
    margin: 0;
}

/* ============================================================
 * RIGHT: FORM CARD
 * ============================================================ */
.eba-wrapper.eba-ct .eba-ct__form {
    background: #fff;
    border: 1px solid #eee9df;
    border-radius: 18px;
    padding: 36px 40px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* Stepper */
.eba-wrapper.eba-ct .eba-ct__stepper {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}
.eba-wrapper.eba-ct .eba-ct__step {
    display: flex;
    align-items: center;
    flex: 1;
}
.eba-wrapper.eba-ct .eba-ct__step:last-child { flex: 0; }
.eba-wrapper.eba-ct .eba-ct__step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0eadf;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.25s;
}
.eba-wrapper.eba-ct .eba-ct__step-line {
    flex: 1;
    height: 2px;
    background: #f0eadf;
    margin: 0 8px;
    transition: background 0.25s;
}
.eba-wrapper.eba-ct .eba-ct__step.is-active .eba-ct__step-num {
    background: linear-gradient(135deg, #d4a24c, #e0b96b);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 162, 76, 0.35);
}
.eba-wrapper.eba-ct .eba-ct__step.is-completed .eba-ct__step-num {
    background: #15803d;
    color: #fff;
}
.eba-wrapper.eba-ct .eba-ct__step.is-completed .eba-ct__step-line { background: #d4a24c; }

/* Panels */
.eba-wrapper.eba-ct .eba-ct__panel { display: none; animation: ebaCtFade 0.25s ease; }
.eba-wrapper.eba-ct .eba-ct__panel.is-active { display: block; }
@keyframes ebaCtFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.eba-wrapper.eba-ct .eba-ct__panel-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 600;
    font-size: 1.5rem;
    color: #0f172a !important;
    margin: 0 0 22px;
    letter-spacing: -0.005em;
}

/* Fields */
.eba-wrapper.eba-ct .eba-ct__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.eba-wrapper.eba-ct .eba-ct__field {
    display: block;
    margin-bottom: 18px;
}
.eba-wrapper.eba-ct .eba-ct__field > span,
.eba-wrapper.eba-ct .eba-ct__field > legend > span {
    display: block;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 8px;
}
.eba-wrapper.eba-ct .eba-ct__field > legend { padding: 0; }
.eba-wrapper.eba-ct .eba-ct__field em {
    color: #d4a24c;
    font-style: normal;
}

.eba-wrapper.eba-ct .eba-ct__field input,
.eba-wrapper.eba-ct .eba-ct__field select,
.eba-wrapper.eba-ct .eba-ct__field textarea {
    width: 100% !important;
    padding: 13px 14px !important;
    border: 1px solid #eee9df !important;
    border-radius: 10px !important;
    background: #fafaf7 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    color: #0f172a !important;
    line-height: 1.5;
    box-sizing: border-box;
    appearance: auto;
    box-shadow: none !important;
    text-shadow: none !important;
}
.eba-wrapper.eba-ct .eba-ct__field input:focus,
.eba-wrapper.eba-ct .eba-ct__field select:focus,
.eba-wrapper.eba-ct .eba-ct__field textarea:focus {
    outline: none !important;
    border-color: #d4a24c !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(212, 162, 76, 0.15) !important;
}
.eba-wrapper.eba-ct .eba-ct__field textarea { resize: vertical; min-height: 100px; }
.eba-wrapper.eba-ct .eba-ct__field input.is-error,
.eba-wrapper.eba-ct .eba-ct__field select.is-error,
.eba-wrapper.eba-ct .eba-ct__field textarea.is-error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

/* Urgency radio pills */
.eba-wrapper.eba-ct .eba-ct__urgency-options {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.eba-wrapper.eba-ct .eba-ct__urgency-option {
    flex: 1;
    min-width: 120px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    background: #fafaf7;
    border: 1px solid #eee9df;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    transition: all 0.15s;
    margin: 0;
}
.eba-wrapper.eba-ct .eba-ct__urgency-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
}
.eba-wrapper.eba-ct .eba-ct__urgency-option:hover { border-color: #d4a24c; color: #d4a24c; }
.eba-wrapper.eba-ct .eba-ct__urgency-option.is-selected {
    background: linear-gradient(135deg, #d4a24c, #e0b96b);
    border-color: #d4a24c;
    color: #fff;
    box-shadow: 0 3px 10px rgba(212, 162, 76, 0.3);
}

/* Consent checkbox */
.eba-wrapper.eba-ct .eba-ct__consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #fafaf7;
    border: 1px solid #eee9df;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
    cursor: pointer;
}
.eba-wrapper.eba-ct .eba-ct__consent input {
    margin: 3px 0 0 !important;
    accent-color: #d4a24c;
}

/* Error / Success */
.eba-wrapper.eba-ct .eba-ct__error,
.eba-wrapper.eba-ct .eba-ct__success {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.5;
}
.eba-wrapper.eba-ct .eba-ct__error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c !important;
}
.eba-wrapper.eba-ct .eba-ct__success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d !important;
}

/* Nav */
.eba-wrapper.eba-ct .eba-ct__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee9df;
    gap: 12px;
}
.eba-wrapper.eba-ct .eba-ct__btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 11px 22px !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.15s;
    background-image: none;
    text-shadow: none !important;
}
.eba-wrapper.eba-ct .eba-ct__btn--ghost {
    background: transparent !important;
    color: #64748b !important;
    margin-right: auto;
}
.eba-wrapper.eba-ct .eba-ct__btn--ghost:hover {
    background: #fafaf7 !important;
    color: #0f172a !important;
}
.eba-wrapper.eba-ct .eba-ct__btn--primary,
.eba-wrapper.eba-ct button.eba-ct__btn--primary {
    background: linear-gradient(135deg, #d4a24c, #e0b96b) !important;
    background-image: linear-gradient(135deg, #d4a24c, #e0b96b) !important;
    color: #fff !important;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(212, 162, 76, 0.3);
}
.eba-wrapper.eba-ct .eba-ct__btn--primary:hover:not(:disabled) {
    box-shadow: 0 6px 18px rgba(212, 162, 76, 0.4);
    transform: translateY(-1px);
}
.eba-wrapper.eba-ct .eba-ct__btn--primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none !important; }

/* ============================================================
 * RESPONSIVE — hardened to prevent horizontal overflow on mobile
 * ============================================================ */

/* Always prevent overflow */
.eba-wrapper.eba-ct,
.eba-wrapper.eba-ct .eba-ct__layout,
.eba-wrapper.eba-ct .eba-ct__form,
.eba-wrapper.eba-ct .eba-ct__panel {
    min-width: 0;
    max-width: 100%;
}
.eba-wrapper.eba-ct .eba-ct__form { overflow: hidden; }
.eba-wrapper.eba-ct .eba-ct__field input,
.eba-wrapper.eba-ct .eba-ct__field select,
.eba-wrapper.eba-ct .eba-ct__field textarea {
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 900px) {
    .eba-wrapper.eba-ct .eba-ct__layout { grid-template-columns: 1fr; gap: 32px; }
    .eba-wrapper.eba-ct .eba-ct__info { order: -1; }
    .eba-wrapper.eba-ct .eba-ct__form { padding: 28px 24px; }
    .eba-wrapper.eba-ct .eba-ct__row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 600px) {
    .eba-wrapper.eba-ct { padding: 40px 0 64px; }
    .eba-wrapper.eba-ct .eba-container { padding: 0 14px; }
    .eba-wrapper.eba-ct .eba-ct__form { padding: 20px 16px; border-radius: 12px; }
    .eba-wrapper.eba-ct .eba-ct__info-heading { font-size: 1.5rem; }
    .eba-wrapper.eba-ct .eba-ct__response { padding: 16px 18px; }
    .eba-wrapper.eba-ct .eba-ct__info-row { gap: 12px; margin-bottom: 18px; }
    .eba-wrapper.eba-ct .eba-ct__info-icon { width: 40px; height: 40px; flex-shrink: 0; }
    .eba-wrapper.eba-ct .eba-ct__panel-title { font-size: 1.25rem; margin-bottom: 18px; }
    .eba-wrapper.eba-ct .eba-ct__urgency-options { flex-direction: column; }
    .eba-wrapper.eba-ct .eba-ct__urgency-option { width: 100%; min-width: 0; }
    .eba-wrapper.eba-ct .eba-ct__step-num { width: 30px; height: 30px; font-size: 13px; }
    .eba-wrapper.eba-ct .eba-ct__field { margin-bottom: 14px; }
    .eba-wrapper.eba-ct .eba-ct__field input,
    .eba-wrapper.eba-ct .eba-ct__field select,
    .eba-wrapper.eba-ct .eba-ct__field textarea {
        padding: 11px 12px !important;
        font-size: 14px !important;
    }
    .eba-wrapper.eba-ct .eba-ct__consent { padding: 12px 14px; font-size: 12.5px; }

    /* Nav: stack buttons vertically so they never overflow */
    .eba-wrapper.eba-ct .eba-ct__nav {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 18px;
        padding-top: 18px;
    }
    .eba-wrapper.eba-ct .eba-ct__btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px !important;
        margin: 0 !important;
    }
    .eba-wrapper.eba-ct .eba-ct__btn--ghost { order: 2; }
    .eba-wrapper.eba-ct .eba-ct__btn--primary { order: 1; }
}
