/* ==========================================================================
   Contact Support — Ticket-first design
   Author: captainlinux.io
   ========================================================================== */

/* ── Layout ── */
.cs-section {
    padding: 48px 8px 72px;
    min-height: 65vh;
}

.cs-wrap {
    max-width: 800px;
    margin: 0 auto;
}

/* ── HERO HEADER ── */
.cs-hero {
    text-align: center;
    margin-bottom: 36px;
}

.cs-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.cs-hero__title {
    font-size: 38px;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.cs-hero__sub {
    font-size: 16px;
    color: #94a3b8;
    margin: 0 auto 32px;
    line-height: 1.7;
    max-width: 580px;
}

/* ── PROCESS STEPS ── */
.cs-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cs-step {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 11px;
    padding: 10px 18px;
}

.cs-step__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-step__label {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap;
}

.cs-step__arrow {
    color: #334155;
    flex-shrink: 0;
}

/* ── ALERTS ── */
.cs-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    animation: csSlideIn 0.4s ease;
}
@keyframes csSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cs-alert--success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.cs-alert--success .cs-alert__icon { color: #10b981; }
.cs-alert--success .cs-alert__body strong { color: #34d399; }
.cs-alert--success .cs-alert__body p { color: #a7f3d0; }
.cs-alert--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.cs-alert--error .cs-alert__icon { color: #ef4444; }
.cs-alert--error .cs-alert__body strong { color: #f87171; }
.cs-alert--error .cs-alert__body p { color: #fca5a5; }
.cs-alert__icon { flex-shrink: 0; margin-top: 2px; }
.cs-alert__body strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.cs-alert__body p { font-size: 14px; margin: 0; line-height: 1.5; }

/* ── MAIN CARD ── */
.cs-card {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.03);
}

/* ── TICKET BANNER ── */
.cs-ticket-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(90deg, rgba(245,158,11,0.13) 0%, rgba(245,158,11,0.06) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    position: relative;
    overflow: hidden;
}

.cs-ticket-banner::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.cs-ticket-banner__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-ticket-banner__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    flex-shrink: 0;
}

.cs-ticket-banner__title {
    font-size: 15px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 3px;
}

.cs-ticket-banner__sub {
    font-size: 13px;
    color: #92733a;
    line-height: 1.4;
}

.cs-ticket-banner__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── FORM ── */
.cs-form {
    padding: 32px 24px 0;
}

.cs-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── FIELDS ── */
.cs-field { display: flex; flex-direction: column; }
.cs-field--full { grid-column: 1 / -1; }

.cs-field__label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 9px;
    letter-spacing: 0.01em;
}
.cs-field__label svg { color: #10b981; flex-shrink: 0; }
.cs-field__req { color: #f59e0b; font-weight: 800; }
.cs-field__opt { font-size: 11px; font-weight: 500; color: #475569; }

.cs-field__control {
    display: block;
    width: 100%;
    padding: 15px 18px;
    font-size: 15px;
    font-family: inherit;
    color: #f1f5f9;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.cs-field__control:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.13);
}
.cs-field__control::placeholder { color: #475569; }

.cs-field__textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.7;
}

.cs-field__hint {
    font-size: 11.5px;
    color: #475569;
    margin-top: 5px;
    line-height: 1.4;
}

.cs-field__footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-top: 5px;
}

.cs-charcount {
    font-size: 11px;
    color: #475569;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Select */
.cs-select-wrap { position: relative; }
.cs-field__control[name="contact_sujet"] { padding-right: 44px; cursor: pointer; }
.cs-field__control option { background: #0f172a; color: #f1f5f9; }
.cs-select-arrow {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #475569;
    display: flex;
    align-items: center;
}

/* Captcha */
.cs-captcha {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

/* ── SUBMIT ZONE ── */
.cs-submit-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 24px 32px;
    margin-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.cs-submit-zone__info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475569;
}
.cs-submit-zone__info svg { color: #10b981; flex-shrink: 0; }

.cs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 32px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}
.cs-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.cs-btn:hover:not(:disabled)::before { opacity: 1; }
.cs-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.45);
}
.cs-btn:active:not(:disabled) { transform: translateY(0); }
.cs-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.3); }

.cs-btn__text,
.cs-btn__loader { display: inline-flex; align-items: center; gap: 8px; }

.cs-spinner { animation: csRotate 1s linear infinite; }
@keyframes csRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── BOTTOM INFO STRIP ── */
.cs-infostrip {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 32px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.cs-infostrip__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 24px;
    flex: 1;
    border-right: 1px solid rgba(148, 163, 184, 0.08);
    transition: background 0.2s;
}
.cs-infostrip__item:last-child { border-right: none; }
.cs-infostrip__item:hover { background: rgba(255,255,255,0.02); }

.cs-infostrip__item svg { color: #10b981; flex-shrink: 0; }

.cs-infostrip__item div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.cs-infostrip__item strong {
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    white-space: nowrap;
}
.cs-infostrip__item span {
    font-size: 12px;
    color: #475569;
    white-space: nowrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .cs-section { padding: 28px 12px 52px; }

    .cs-hero__title { font-size: 24px; }
    .cs-hero__sub { font-size: 14px; }

    .cs-steps { gap: 6px; }
    .cs-step { padding: 6px 10px; }
    .cs-step__label { font-size: 11px; }
    .cs-step__arrow { display: none; }

    .cs-form__grid { grid-template-columns: 1fr; }

    .cs-ticket-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 18px;
    }

    .cs-form { padding: 20px 18px 0; }

    .cs-submit-zone {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 18px 22px;
    }
    .cs-btn { width: 100%; justify-content: center; }

    .cs-infostrip {
        flex-direction: column;
        border-radius: 14px;
    }
    .cs-infostrip__item {
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    }
    .cs-infostrip__item:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
    .cs-ticket-banner__tag { align-self: flex-start; }
}
