/* ════════════════════════════════
   CONTACT — Prodelium
   Hero + single centered form
════════════════════════════════ */

body:has(.ct-hero) .blob { display: none; }
body:has(.ct-hero) main { padding-top: 0; }

/* ── HERO ── */
.ct-hero {
    position: relative;
    padding: 100px 24px 30px;
    text-align: center;
    background: linear-gradient(180deg, #F8F7FF 0%, #fff 100%);
}
.ct-hero::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    max-width: 90%;
    height: 160px;
    background: radial-gradient(ellipse at center, rgba(91, 75, 219, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(30px);
}
.ct-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}
.ct-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.8vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    text-wrap: balance;
}
.ct-hero-subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.55;
    max-width: 520px;
    margin: 0 auto;
    text-wrap: balance;
}

/* Gradient text utility */
.text-gradient {
    display: inline;
    background: linear-gradient(135deg, #5B4BDB, #7B6FE8, #9B92EC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-primary);
}

/* Shared pill / button utilities */
.hp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(91, 75, 219, 0.08);
    border: 1px solid rgba(91, 75, 219, 0.15);
    border-radius: 100px;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}
.hp-pill svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(91, 75, 219, 0.25);
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(91, 75, 219, 0.35);
}
.btn-primary svg { width: 16px; height: 16px; }

/* ── FORM SECTION ── */
.ct-form-section {
    position: relative;
    padding: 10px 24px 80px;
    background: #fff;
}
.ct-form-wrap {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card */
.ct-card {
    padding: 36px 32px;
    background: #fff;
    border: 1px solid rgba(91, 75, 219, 0.15);
    border-radius: 20px;
    box-shadow: 0 6px 32px rgba(91, 75, 219, 0.08);
}

/* Form */
.ct-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.ct-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ct-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: 0.01em;
}
.ct-req {
    color: var(--color-primary);
}
.ct-field input,
.ct-field select,
.ct-field textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-primary);
    background: #fff;
    border: 1px solid rgba(91, 75, 219, 0.2);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91, 75, 219, 0.12);
}
.ct-field textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-body);
}
.ct-field select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6880' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder {
    color: #a8a5bd;
}
.ct-field ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #dc2626;
}

/* Honeypot */
.ct-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* RGPD consent */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 8px;
}
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-secondary);
    cursor: pointer;
    line-height: 1.5;
}
.consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    accent-color: var(--color-primary);
    margin-top: 2px;
    cursor: pointer;
}
.consent-label a {
    color: var(--color-primary);
    text-decoration: underline;
}
.consent-label a:hover {
    color: var(--color-primary-dark);
}

/* Inline flashes (this page overrides the default toast system) */
.flash-success,
.flash-error {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
}
.flash-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}
.flash-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

/* Submit */
.ct-submit {
    align-self: flex-start;
    margin-top: 6px;
}

/* Reassurance row */
.ct-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
}
.ct-perks li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}
.ct-perks svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Demo link */
.ct-demo-link {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 4px 0 0;
}
.ct-demo-link a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.15s;
}
.ct-demo-link a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 560px) {
    .ct-hero {
        padding: 100px 18px 30px;
    }
    .ct-card {
        padding: 26px 20px;
    }
    .ct-row {
        grid-template-columns: 1fr;
    }
    .ct-perks {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 8px;
    }
}
