/* Contact Sales modal — feature-scoped (.cs-*) so it can't collide. */
.cs-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cs-modal.is-open { display: flex; }
.cs-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.cs-modal__panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    color: #0f172a;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    padding: 28px 28px 22px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.cs-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.cs-modal__close:hover { background: #f1f5f9; color: #0f172a; }

.cs-modal__header { margin-bottom: 18px; }
.cs-modal__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ea580c;
    margin-bottom: 6px;
}
.cs-modal__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}
.cs-modal__subtitle {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.cs-modal__form { display: flex; flex-direction: column; gap: 14px; }
.cs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.cs-field { display: flex; flex-direction: column; gap: 6px; }
.cs-field--full { grid-column: 1 / -1; }
.cs-field__label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.02em;
}
.cs-field__label em {
    font-style: normal;
    color: #ea580c;
    margin-left: 2px;
}
.cs-field input,
.cs-field select,
.cs-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cs-field textarea { resize: vertical; min-height: 96px; }
.cs-field input:focus,
.cs-field select:focus,
.cs-field textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.cs-modal__status {
    min-height: 18px;
    font-size: 13px;
    line-height: 1.4;
}
.cs-modal__status.is-error { color: #b91c1c; }
.cs-modal__status.is-success { color: #15803d; }

.cs-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}
.cs-btn {
    appearance: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 9px;
    cursor: pointer;
    transition: filter 0.15s ease, background 0.15s ease, transform 0.05s ease;
}
.cs-btn--ghost {
    background: transparent;
    color: #475569;
}
.cs-btn--ghost:hover { background: #f1f5f9; color: #0f172a; }
.cs-btn--primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.32);
}
.cs-btn--primary:hover { filter: brightness(1.05); }
.cs-btn--primary:active { transform: translateY(1px); }
.cs-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.cs-modal__fineprint {
    margin: 4px 0 0;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}
.cs-modal__fineprint a { color: #64748b; text-decoration: underline; }

/* Honeypot — visually hidden but still in the DOM for bots. */
.cs-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 560px) {
    .cs-modal__panel { padding: 22px 18px 18px; border-radius: 14px; }
    .cs-modal__title { font-size: 20px; }
    .cs-row { grid-template-columns: 1fr; gap: 12px; }
}
