/* ===================================================
   Custom Contact Page — Hyvä Theme Compatible
   Light Professional Theme
   =================================================== */

/* ─── RESET ─────────────────────────────────────────── */
.custom-contact-page *,
.custom-contact-page *::before,
.custom-contact-page *::after {
    box-sizing: border-box;
}

[x-cloak] { display: none !important; }

/* ─── DESIGN TOKENS ─────────────────────────────────── */
:root {
    --cc-bg:         #f8f9fb;
    --cc-surface:    #ffffff;
    --cc-surface2:   #f1f3f6;
    --cc-border:     #e2e6ec;
    --cc-text:       #111827;
    --cc-muted:      #6b7280;
    --cc-accent:     #2563eb;
    --cc-accent-lt:  #3b82f6;
    --cc-accent-bg:  #eff6ff;
    --cc-wa:         #25d366;
    --cc-wa-dark:    #128c4a;
    --cc-error:      #dc2626;
    --cc-error-bg:   #fef2f2;
    --cc-success:    #16a34a;
    --cc-success-bg: #f0fdf4;
    --cc-radius:     14px;
    --cc-radius-sm:  8px;
    --cc-shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --cc-font:       system-ui, -apple-system, 'Segoe UI', sans-serif;
    --cc-max:        1200px;
}

/* ─── PAGE WRAPPER ───────────────────────────────────── */
.custom-contact-page {
    background: var(--cc-bg);
    color: var(--cc-text);
    min-height: 100vh;
}

/* ─── HERO ───────────────────────────────────────────── */
.contact-hero {
    background: var(--cc-surface);
    border-bottom: 1px solid var(--cc-border);
    padding: 64px 24px 56px;
    background: linear-gradient(135deg, #0b1d3a 0%, #13305c 55%, #FF5722 100%);
    border-radius: 0px;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.contact-hero-inner {
    max-width: var(--cc-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--cc-accent-bg);
    padding: 4px 12px;
    border-radius: 999px;
    width: fit-content;
    margin: 0 0 8px;
}

.contact-title {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--cc-surface);
    margin: 0 0 14px;
}

.contact-title span {
    color: var(--cc-accent);
}

.contact-subtitle {
    font-size: 17px;
    color: var(--cc-muted);
    max-width: 500px;
    line-height: 1.7;
    margin: 0 0 28px;
}

/* Trust badges */
.contact-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-trust-badges li {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cc-surface2);
    border: 1px solid var(--cc-border);
    border-radius: 999px;
    padding: 6px 14px 6px 10px;
}

.badge-icon {
    font-size: 15px;
    line-height: 1;
}

.contact-trust-badges li div {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.contact-trust-badges strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--cc-text);
}

.contact-trust-badges span {
    font-size: 12px;
    color: var(--cc-muted);
}

/* WhatsApp chip */
.contact-whatsapp-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff613d;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    width: fit-content;
    transition: background .2s, transform .15s, box-shadow .2s;
}

/* ─── MAIN LAYOUT ────────────────────────────────────── */
.contact-content-wrapper {
    max-width: var(--cc-max);
    margin: 0 auto;
    padding: 48px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-content-wrapper { grid-template-columns: 1fr; }
}

/* ─── FORM CARD ──────────────────────────────────────── */
.contact-form-card {
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    padding: 40px;
    box-shadow: var(--cc-shadow);
}

@media (max-width: 600px) {
    .contact-form-card { padding: 24px 18px; }
}

.form-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ff613d;
    margin: 0 0 4px;
}

.form-desc {
    font-size: 14px;
    color: var(--cc-muted);
    margin: 0 0 28px;
    line-height: 1.6;
}

/* Form grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field-full { grid-column: 1 / -1; }

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: 1; }
}

/* Field */
.field { display: flex; flex-direction: column; gap: 5px; }

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.required { color: red; margin-left: 2px; }
.optional  { color: var(--cc-muted); font-weight: 400; font-size: 12px; }

.field-input {
    background: var(--cc-surface);
    border: 1.5px solid var(--cc-border);
    border-radius: var(--cc-radius-sm);
    color: var(--cc-text);
    font-size: 15px;
    font-family: inherit;
    padding: 10px 13px;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    -webkit-appearance: none;
}

.field-input::placeholder { color: #9ca3af; }

.field-input:focus {
    border-color: var(--cc-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.field-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* Field error */
.field-error .field-input {
    border-color: var(--cc-error);
    background: var(--cc-error-bg);
}

.field-msg {
    font-size: 12px;
    color: var(--cc-error);
    display: block;
}

/* Error banner */
.form-error-banner {
    margin-top: 16px;
    background: var(--cc-error-bg);
    border: 1px solid #fecaca;
    color: var(--cc-error);
    padding: 12px 16px;
    border-radius: var(--cc-radius-sm);
    font-size: 14px;
}

/* Form footer */
.form-footer {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.btn-submit {
    background: #ff613d;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: var(--cc-radius-sm);
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
    transition: background .2s, transform .15s, box-shadow .2s, opacity .2s;
}

.btn-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

.form-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-trust li {
    font-size: 12px;
    color: var(--cc-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── SUCCESS STATE ──────────────────────────────────── */
.contact-success {
    text-align: center;
    padding: 48px 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--cc-success-bg);
    border: 2px solid #bbf7d0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: var(--cc-success);
    margin: 0 auto 20px;
}

.contact-success h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--cc-text);
}

.contact-success p {
    color: var(--cc-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cc-wa);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37,211,102,.3);
    transition: background .2s, transform .15s;
}

.btn-whatsapp:hover {
    background: var(--cc-wa-dark);
    transform: translateY(-1px);
}

/* ─── SIDEBAR ────────────────────────────────────────── */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
}

/* WhatsApp sidebar card */
.sidebar-whatsapp-card {
    display: block;
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    border: 1.5px solid #86efac;
    border-radius: var(--cc-radius);
    padding: 22px;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    box-shadow: 0 1px 4px rgba(37,211,102,.1);
}

.sidebar-whatsapp-card:hover {
    border-color: var(--cc-wa);
    box-shadow: 0 4px 16px rgba(37,211,102,.2);
    transform: translateY(-2px);
}

.wa-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--cc-wa-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.wa-dot {
    width: 8px;
    height: 8px;
    background: var(--cc-wa);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .35; }
}

.wa-title {
    font-size: 16px;
    font-weight: 800;
    color: #14532d;
    margin: 0 0 5px;
}

.wa-sub {
    font-size: 13px;
    color: #166534;
    margin: 0 0 14px;
    line-height: 1.55;
    opacity: .8;
}

.wa-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--cc-wa-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar cards */
.sidebar-contacts,
.sidebar-why {
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    padding: 22px;
    box-shadow: var(--cc-shadow);
}

.sidebar-contacts h3,
.sidebar-why h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cc-muted);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cc-border);
}

.sidebar-contacts ul,
.sidebar-why ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-contacts li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.sc-icon {
    font-size: 15px;
    margin-top: 1px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--cc-surface2);
    border: 1px solid var(--cc-border);
    border-radius: 6px;
    display: grid;
    place-items: center;
}

.sidebar-contacts li div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-contacts a {
    color: var(--cc-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.sidebar-contacts a:hover { text-decoration: underline; }

.sidebar-contacts span,
.sidebar-contacts strong {
    font-size: 12px;
    color: var(--cc-muted);
}

.sidebar-contacts strong {
    color: var(--cc-text);
    font-weight: 600;
    font-size: 13px;
}

/* Why us */
.sidebar-why li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.why-icon {
    width: 28px;
    height: 28px;
    background: var(--cc-accent-bg);
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.sidebar-why li div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-why strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--cc-text);
}

.sidebar-why span {
    font-size: 12px;
    color: var(--cc-muted);
    line-height: 1.5;
}
