/* ==========================================================================
   contact.css — Design pentru pagina de contact (/contact)
   Încărcat DOAR de themes/default/templates/contact.php.

   Toate regulile sunt prefixate cu .ct- sau sunt scoped sub .ct-page, deci nu
   afectează nicio altă pagină (home, shop, categorie, produs, coș, cont).

   TEMA: curat, modern, „sanitar / wellness” — bandă hero cu gradient albastru,
   carduri rotunjite, icoane și umbre discrete (același limbaj vizual ca
   page.css / paginile de conținut). Designul NU schimbă nicio funcționalitate:
   structura formularului, id-urile, atributele și logica rămân intacte.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.ct-page {
    /* ── Design tokens ─────────────────────────────────────── */
    --ct-accent: #0056b3;          /* albastru brand (ca page.css) */
    --ct-accent-dark: #004494;
    --ct-accent-soft: #e6f0fa;
    --ct-aqua: #0ea5e9;            /* accent „apă” */
    --ct-aqua-deep: #0369a1;
    --ct-aqua-soft: #e0f2fe;
    --ct-navy: #0f172a;
    --ct-text: #101828;
    --ct-text-soft: #344054;
    --ct-muted: #667085;
    --ct-border: #eaecf0;
    --ct-border-strong: #d0d5dd;
    --ct-bg-soft: #f9fafb;
    --ct-info-bg: #f0f9ff;
    --ct-info-border: #dbeafe;
    --ct-danger: #d92d20;
    --ct-radius: 18px;
    --ct-radius-sm: 10px;
    --ct-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
    --ct-shadow-lg: 0 18px 44px -18px rgba(16, 24, 40, 0.22);
    --ct-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

    color: var(--ct-text);
    font-family: var(--ct-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(900px 300px at 12% 0%, rgba(0, 86, 179, 0.05), transparent 62%),
        linear-gradient(180deg, #f2f5fa 0%, #f8f9fa 100%);
}

/* ── Hero ───────────────────────────────────────────────────── */
.ct-page .ct-hero {
    position: relative;
    overflow: hidden;
    padding: 52px 0 60px;
    background: linear-gradient(135deg, var(--ct-navy) 0%, var(--ct-aqua) 100%);
    border-radius: 0 0 28px 28px;
}

/* Halou luminos, discret */
.ct-page .ct-hero::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
    pointer-events: none;
}

.ct-page .ct-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 15px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
}

.ct-page .ct-hero-title {
    margin: 0 0 12px;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
}

.ct-page .ct-hero-text {
    max-width: 720px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

/* Pe desktop textul din hero rămâne pe o singură linie */
@media (min-width: 992px) {
    .ct-page .ct-hero-text {
        max-width: none;
        white-space: nowrap;
    }
}

/* ── Zona de conținut (se ridică peste hero) ────────────────── */
.ct-page .ct-container {
    position: relative;
    z-index: 2;
    margin-top: -34px;
    padding-top: 0;
    padding-bottom: 64px;
}

/* ── Carduri ────────────────────────────────────────────────── */
.ct-page .ct-card {
    height: 100%;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow-lg);
}

.ct-page .ct-card-info {
    /* Doar cât conținutul: nu se întinde pe toată înălțimea formularului */
    height: auto;
    background: var(--ct-info-bg);
    border-color: var(--ct-info-border);
}

/* ── Capul cardului cu formularul ───────────────────────────── */
.ct-page .ct-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ct-border);
}

.ct-page .ct-card-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ct-accent) 0%, var(--ct-aqua) 100%);
    box-shadow: 0 10px 22px -10px rgba(0, 86, 179, 0.7);
}

.ct-page .ct-card-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ct-text);
}

.ct-page .ct-card-sub {
    margin: 4px 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ct-muted);
}

/* ── Titluri în cardul de informații ────────────────────────── */
.ct-page .ct-company {
    margin: 0 0 16px;
    padding-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ct-text);
    border-bottom: 1px solid var(--ct-info-border);
}

/* ── Cap card info: logo în stânga, numele firmei în dreapta ── */
.ct-page .ct-info-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ct-info-border);
}

.ct-page .ct-info-head .ct-company {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
    border-bottom: 0;
}

/* ── Logo (link din BD, afișat în capul cardului de informații) */
.ct-page .ct-logo {
    flex: 0 0 auto;
    margin: 0;
    text-align: left;
}

.ct-page .ct-logo img {
    max-width: 100%;
    max-height: 90px;
    height: auto;
    width: auto;
}

/* ── Formular ───────────────────────────────────────────────── */
.ct-page .ct-field {
    margin-bottom: 18px;
}

.ct-page .ct-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ct-text-soft);
}

.ct-page .ct-req {
    color: var(--ct-danger);
}

.ct-page .ct-input {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-family: var(--ct-font);
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--ct-text);
    background: var(--ct-bg-soft);
    border: 1px solid var(--ct-border-strong);
    border-radius: var(--ct-radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ct-page .ct-input::placeholder {
    color: #98a2b3;
}

.ct-page .ct-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--ct-accent);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

.ct-page .ct-textarea {
    min-height: 130px;
    resize: vertical;
}

/* Captcha: bara cu cifre, pe toată lățimea câmpului */
.ct-page .ct-captcha-img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--ct-border-strong);
    border-radius: var(--ct-radius-sm);
    cursor: pointer;
}

/* Capcană anti-spam: prezentă în DOM, dar invizibilă pentru vizitatori */
.ct-page .ct-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Acord termeni ──────────────────────────────────────────── */
.ct-page .ct-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 22px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475467;
    cursor: pointer;
}

.ct-page .ct-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--ct-accent);
    cursor: pointer;
}

.ct-page .ct-consent a {
    color: var(--ct-accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 86, 179, 0.35);
    text-underline-offset: 2px;
}

.ct-page .ct-consent a:hover {
    color: var(--ct-accent-dark);
    text-decoration-color: currentColor;
}

/* ── Buton ──────────────────────────────────────────────────── */
.ct-page .ct-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px 22px;
    font-family: var(--ct-font);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--ct-accent) 0%, var(--ct-aqua-deep) 100%);
    border: none;
    border-radius: var(--ct-radius-sm);
    box-shadow: 0 10px 24px -10px rgba(0, 86, 179, 0.6);
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ct-page .ct-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 14px 30px -10px rgba(0, 86, 179, 0.7);
    transform: translateY(-1px);
}

.ct-page .ct-submit:active {
    transform: translateY(1px);
    box-shadow: 0 6px 16px -10px rgba(0, 86, 179, 0.7);
}

/* ── Datele firmei ──────────────────────────────────────────── */
.ct-page .ct-rows {
    margin: 0;
}

.ct-page .ct-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    font-size: 0.92rem;
    line-height: 1.55;
    border-bottom: 1px solid var(--ct-info-border);
}

.ct-page .ct-row:last-child {
    border-bottom: 0;
}

.ct-page .ct-row dt {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 132px;
    margin: 0;
    font-weight: 600;
    color: var(--ct-muted);
}

.ct-page .ct-row-icon {
    flex: 0 0 auto;
    width: 16px;
    font-size: 0.85rem;
    color: var(--ct-accent);
    text-align: center;
}

.ct-page .ct-row dd {
    margin: 0;
    font-weight: 500;
    color: var(--ct-text-soft);
    word-break: break-word;
}

.ct-page .ct-row dd a {
    color: var(--ct-accent);
    text-decoration: none;
}

.ct-page .ct-row dd a:hover {
    text-decoration: underline;
}

/* ── Alerte ─────────────────────────────────────────────────── */
.ct-page .ct-alerts {
    margin: 0 0 20px;
}

.ct-page .ct-alerts .alert {
    font-family: var(--ct-font);
    font-size: 0.92rem;
    border-radius: var(--ct-radius-sm);
    border: 1px solid;
    box-shadow: var(--ct-shadow);
}

.ct-page .ct-alerts .alert-danger {
    color: #912018;
    background: #fef3f2;
    border-color: #fecdca;
}

.ct-page .ct-alerts .alert-success {
    color: #05603a;
    background: #ecfdf3;
    border-color: #a6f4c5;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .ct-page .ct-card {
        height: auto;
        margin-bottom: 24px;
    }

    .ct-page .ct-col-info .ct-card {
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .ct-page .ct-hero {
        padding: 38px 0 48px;
        border-radius: 0 0 22px 22px;
    }

    .ct-page .ct-hero-title {
        font-size: 1.85rem;
    }

    .ct-page .ct-hero-text {
        font-size: 0.98rem;
    }

    .ct-page .ct-container {
        margin-top: -26px;
        padding-bottom: 44px;
    }

    .ct-page .ct-card {
        padding: 20px;
    }

    /* Textul de sub titlu trece pe tot rândul și încape pe o singură linie */
    .ct-page .ct-card-head {
        flex-wrap: wrap;
        gap: 13px;
        row-gap: 6px;
    }

    .ct-page .ct-card-head-text {
        display: contents;
    }

    .ct-page .ct-card-title {
        flex: 1 1 auto;
    }

    .ct-page .ct-card-sub {
        flex: 1 1 100%;
        font-size: 0.64rem;
        white-space: nowrap;
    }

    .ct-page .ct-card-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    /* Pe mobil păstrăm eticheta și valoarea pe același rând */
    .ct-page .ct-row {
        display: flex;
        padding: 8px 0;
    }

    .ct-page .ct-row dt {
        flex: 0 0 auto;
        margin-bottom: 0;
    }
}
