/* ==========================================================================
   Contact / enquiry flow (contact/index.php)
   Scoped to .contact-* + homepage CTA banner. Mobile first.
   ========================================================================== */

/* ---------- Homepage CTA banner (also mirrored in result-ui.css) ---------- */
.contact-cta {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    padding: 20px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

a.contact-cta {
    display: block;
    color: #fff;
    text-decoration: none;
}

a.contact-cta:hover {
    color: #fff;
    text-decoration: none;
}

.contact-cta-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-cta-sub {
    display: block;
    font-size: 14px;
    opacity: 0.95;
}

/* ---------- Advanced banner with button ---------- */
.contact-cta--adv {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 16px 18px;
    border-radius: 16px;
    background:
        radial-gradient(300px 120px at 95% 0%, rgba(245,179,1,.25), transparent 60%),
        linear-gradient(120deg, #101418 10%, #1d242c 60%, #101418 100%);
    border: 1px solid rgba(245,179,1,.35);
    box-shadow: 0 10px 28px rgba(16,20,24,.35);
}
.contact-cta--adv::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent);
    transform: skewX(-20deg);
    animation: contactCtaShine 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes contactCtaShine {
    0%, 55% { left: -70%; }
    100% { left: 140%; }
}
.contact-cta__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5b301, #ff8a00);
    color: #141414;
    box-shadow: 0 6px 18px rgba(245,179,1,.5);
}
.contact-cta__icon svg { width: 24px; height: 24px; }
.contact-cta__texts { flex: 1 1 auto; min-width: 0; }
.contact-cta--adv .contact-cta-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.02rem;
    letter-spacing: .02em;
}
.contact-cta__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22e584;
    box-shadow: 0 0 0 0 rgba(34,229,132,.7);
    animation: contactCtaPulse 1.6s infinite;
    flex: 0 0 auto;
}
@keyframes contactCtaPulse {
    70% { box-shadow: 0 0 0 9px rgba(34,229,132,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,229,132,0); }
}
.contact-cta__actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}
.contact-cta__btn {
    border: 0;
    border-radius: 999px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #f5b301, #ffd34d);
    color: #141414;
    font: inherit;
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(245,179,1,.45);
    transition: transform .15s;
}
.contact-cta__btn:hover { transform: translateY(-1px) scale(1.02); }
.contact-cta__link {
    text-align: center;
    font-size: .76rem;
    font-weight: 700;
    color: #f5b301;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.contact-cta__link:hover { color: #fff; }
@media (max-width: 560px) {
    .contact-cta--adv { flex-wrap: wrap; padding: 10px 12px; gap: 10px; border-radius: 12px; }
    .contact-cta__icon { width: 32px; height: 32px; border-radius: 10px; }
    .contact-cta__icon svg { width: 17px; height: 17px; }
    .contact-cta--adv .contact-cta-title { font-size: 0.82rem; }
    .contact-cta-sub { font-size: 0.74rem; }
    .contact-cta__actions { width: 100%; gap: 4px; }
    .contact-cta__btn { width: 100%; padding: 8px 14px; font-size: 0.78rem; }
    .contact-cta__link { font-size: 0.7rem; }
}

/* ---------- Page scaffold ---------- */
.contact-section {
    padding: 18px 0 34px;
}

.contact-wrap {
    max-width: 760px;
}

.contact-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--next, #0b5ea8);
    margin-bottom: 12px;
}

.contact-hero {
    text-align: center;
    margin-bottom: 18px;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0b5ea8;
    background: #e8f1fb;
    border-radius: 999px;
    padding: 6px 14px;
    margin: 0 0 10px;
}

.contact-heading {
    font-size: clamp(1.5rem, 4vw + 1rem, 2rem);
    line-height: 1.2;
    margin: 0 0 8px;
    color: var(--ink, #101418);
}

.contact-sub {
    margin: 0 auto;
    max-width: 56ch;
    color: var(--ink-soft, #3c4650);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ---------- Card ---------- */
.contact-card {
    background: #fff;
    border: 1px solid var(--line-soft, #e9edf1);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(16, 20, 24, 0.10);
    padding: 22px 18px;
    overflow: hidden;
}

/* ---------- Progress ---------- */
.contact-progress {
    height: 6px;
    background: #eef1f4;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}

.contact-progress__bar {
    height: 100%;
    width: 25%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2196F3, #0b5ea8);
    transition: width 0.35s ease;
}

.contact-steps {
    list-style: none;
    display: flex;
    margin: 0 0 6px;
    padding: 0 0 16px;
}

.contact-step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    color: #9aa5b1;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.contact-step::before {
    content: "";
    position: absolute;
    top: 15px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #e3e8ee;
    z-index: 0;
}

.contact-step:first-child::before {
    display: none;
}

.contact-step--done::before {
    background: #1c7a45;
}

.contact-step__dot {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef1f4;
    color: #9aa5b1;
    border: 2px solid transparent;
}

.contact-step__tick {
    display: none;
    width: 16px;
    height: 16px;
}

.contact-step--active {
    color: #0b5ea8;
}

.contact-step--active .contact-step__dot {
    background: #e8f1fd;
    border-color: #2196F3;
    color: #0b5ea8;
}

.contact-step--done {
    color: #1c7a45;
}

.contact-step--done .contact-step__dot {
    background: #e7f5ec;
    color: #1c7a45;
}

.contact-step--done .contact-step__num {
    display: none;
}

.contact-step--done .contact-step__tick {
    display: inline-block;
}

.contact-step__label {
    line-height: 1.3;
}

/* ---------- Summary chips ---------- */
.contact-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 4px;
}

.contact-summary[hidden] {
    display: none;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    background: #f2f7fe;
    border: 1px solid #cfe2fa;
    color: #0b3d6b;
    border-radius: 999px;
    padding: 7px 8px 7px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.contact-chip__icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.contact-chip span:not(.contact-chip__edit) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-chip__edit {
    background: #fff;
    border: 1px solid #cfe2fa;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.75rem;
    color: #0b5ea8;
}

/* ---------- Panels ---------- */
.contact-panel {
    padding-top: 10px;
}

.contact-panel[hidden] {
    display: none;
}

.contact-title {
    font-size: 1.375rem;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 6px;
    color: var(--ink, #101418);
}

.contact-hint {
    text-align: center;
    color: var(--ink-mute, #6b7883);
    font-size: 0.875rem;
    margin: 0 0 18px;
}

/* ---------- Language search + grid ---------- */
.contact-search {
    position: relative;
    margin-bottom: 14px;
}

.contact-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #9aa5b1;
    pointer-events: none;
}

.contact-search input {
    width: 100%;
    padding: 11px 12px 11px 38px;
    border: 1.5px solid #dfe5ec;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: #fbfcfd;
}

.contact-search input:focus {
    outline: none;
    border-color: #2196F3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lang-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    background: #fff;
    border: 1.5px solid #dfe5ec;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink, #101418);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    min-width: 0;
}

.lang-btn:hover {
    border-color: #2196F3;
    background: #f5faff;
}

.lang-btn__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: #0b5ea8;
}

.lang-btn__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-btn__tick {
    display: none;
    flex: 0 0 auto;
}

.lang-btn__tick-icon {
    width: 20px;
    height: 20px;
    color: #1c7a45;
}

.lang-btn.selected,
.lang-btn[aria-pressed="true"] {
    border-color: #2196F3;
    border-width: 2px;
    padding: 13.5px 11.5px;
    background: #eef6ff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.18);
}

.lang-btn.selected .lang-btn__tick,
.lang-btn[aria-pressed="true"] .lang-btn__tick {
    display: inline-flex;
}

.contact-empty {
    text-align: center;
    color: var(--ink-mute, #6b7883);
    font-size: 0.875rem;
    margin: 18px 0 4px;
}

/* ---------- Service cards ---------- */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    background: #fff;
    border: 1.5px solid #dfe5ec;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.service-card:hover {
    border-color: #2196F3;
    background: #f5faff;
}

.service-card__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f1fb;
    color: #0b5ea8;
}

.service-icon {
    width: 22px;
    height: 22px;
}

.service-card__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-title {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--ink, #101418);
    line-height: 1.4;
}

.service-desc {
    font-size: 0.8125rem;
    color: var(--ink-soft, #3c4650);
    line-height: 1.55;
}

.service-card__tick {
    display: none;
    flex: 0 0 auto;
    margin-top: 2px;
}

.service-tick-icon {
    width: 22px;
    height: 22px;
    color: #1c7a45;
}

.service-card.selected,
.service-card[aria-pressed="true"] {
    border-color: #2196F3;
    border-width: 2px;
    padding: 13.5px 11.5px;
    background: #eef6ff;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.18);
}

.service-card.selected .service-card__tick,
.service-card[aria-pressed="true"] .service-card__tick {
    display: inline-flex;
}

.service-card.selected .service-card__icon,
.service-card[aria-pressed="true"] .service-card__icon {
    background: #2196F3;
    color: #fff;
}

/* ---------- Form ---------- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink, #101418);
}

.form-icon {
    width: 17px;
    height: 17px;
    color: #0b5ea8;
    flex: 0 0 auto;
}

.req {
    color: #c62828;
    font-weight: 700;
}

.opt {
    color: var(--ink-mute, #6b7883);
    font-weight: 400;
    font-size: 0.8125rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1.5px solid #dfe5ec;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--ink, #101418);
    background: #fbfcfd;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.55;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
    border-color: #c62828;
    background: #fff7f7;
}

.form-note {
    display: block;
    font-size: 0.75rem;
    color: var(--ink-mute, #6b7883);
    margin-top: 5px;
}

.error-msg {
    display: block;
    color: #c62828;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 5px;
    min-height: 0;
}

.error-msg:empty {
    display: none;
}

/* Honeypot: keep bots out, humans never see it. */
.hp-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.msg-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.msg-meter__track {
    flex: 1 1 auto;
    height: 5px;
    border-radius: 999px;
    background: #edf0f4;
    overflow: hidden;
}

.msg-meter__fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: #2196F3;
    transition: width 0.2s ease, background 0.2s ease;
}

.msg-meter__fill.is-warn {
    background: #f5a301;
}

.msg-meter__fill.is-full {
    background: #c62828;
}

.char-counter {
    flex: 0 0 auto;
    font-size: 0.75rem;
    color: var(--ink-mute, #6b7883);
    font-variant-numeric: tabular-nums;
}

.contact-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--ink-mute, #6b7883);
    background: #f6f8fa;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 4px 0 0;
}

/* ---------- Navigation ---------- */
.step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft, #e9edf1);
}

.step-count {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-mute, #6b7883);
    font-variant-numeric: tabular-nums;
}

.step-nav__btns {
    display: flex;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s, opacity 0.18s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(33, 150, 243, 0.35);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(33, 150, 243, 0.45);
}

.btn-secondary {
    background: #f0f3f6;
    color: var(--ink, #101418);
}

.btn-secondary:hover:not(:disabled) {
    background: #e2e8ee;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary .btn__icon,
.btn-secondary .btn__icon {
    width: 17px;
    height: 17px;
}

.btn-primary.is-loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary.is-loading .btn__icon {
    animation: ct-spin 0.9s linear infinite;
}

@keyframes ct-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Success ---------- */
.success-box {
    text-align: center;
    padding: 26px 8px 10px;
}

.success-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #e7f5ec;
    color: #1c7a45;
    animation: ct-pop 0.45s ease;
}

.success-icon {
    width: 42px;
    height: 42px;
}

@keyframes ct-pop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.success-box h2 {
    margin: 18px 0 6px;
    font-size: 1.625rem;
    color: var(--ink, #101418);
}

.success-lead {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
}

.success-sub {
    color: var(--ink-soft, #3c4650);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 auto 18px;
    max-width: 52ch;
}

.success-meta {
    margin: 0 auto 22px;
    max-width: 480px;
    text-align: left;
    background: #f6f8fa;
    border: 1px solid var(--line-soft, #e9edf1);
    border-radius: 12px;
    padding: 6px 14px;
}

.success-meta__row {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    font-size: 0.875rem;
}

.success-meta__row + .success-meta__row {
    border-top: 1px dashed #dfe5ec;
}

.success-meta dt {
    flex: 0 0 110px;
    font-weight: 700;
    color: var(--ink-mute, #6b7883);
}

.success-meta dd {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.success-meta code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.8125rem;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 6px;
    padding: 2px 8px;
    overflow-wrap: anywhere;
}

.btn-link:hover {
    text-decoration: none;
    color: #fff;
}

/* ---------- Error ---------- */
.contact-error {
    margin-top: 18px;
    background: #fdecec;
    border: 1.5px solid #f3b3b3;
    color: #7a1f1f;
    border-radius: 12px;
    padding: 14px;
    font-size: 0.9375rem;
    text-align: center;
}

.contact-error[hidden] {
    display: none;
}

.contact-error p {
    margin: 0 0 12px;
}

/* ---------- Desktop layer ---------- */
@media (min-width: 600px) {
    .contact-section {
        padding: 30px 0 48px;
    }

    .contact-card {
        padding: 30px 34px 28px;
    }

    .contact-step {
        font-size: 0.8125rem;
    }

    .language-grid {
        gap: 14px;
    }

    .lang-btn {
        padding: 16px 14px;
        font-size: 1.0625rem;
    }

    .service-card {
        padding: 16px 14px;
    }
}

/* ---------- Small phones ---------- */
@media (max-width: 379px) {
    .contact-card {
        padding: 18px 12px;
    }

    .language-grid {
        gap: 8px;
    }

    .lang-btn {
        padding: 12px 8px;
        font-size: 0.9375rem;
    }

    .contact-step__label {
        font-size: 0.6875rem;
    }

    .step-nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .step-count {
        text-align: center;
    }

    .step-nav__btns {
        width: 100%;
    }

    .step-nav__btns .btn-primary,
    .step-nav__btns .btn-secondary {
        flex: 1 1 0;
        padding: 12px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-progress__bar,
    .msg-meter__fill,
    .lang-btn,
    .service-card,
    .btn-primary,
    .btn-secondary,
    .contact-cta {
        transition: none;
    }

    .success-ring {
        animation: none;
    }
}
