/* =========================================================
   contact-modal.css — Global contact modal styles
   ========================================================= */

.cm-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15,31,61,0.18);
}

/* ── HEADER ── */
.cm-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.4rem 1.5rem;
    background: linear-gradient(135deg, #0f1f3d, #2a4a80);
    color: #fff;
}

.cm-header__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-header__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.15rem;
}

.cm-header__sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.72);
    margin: 0;
    font-weight: 300;
}

/* ── BODY ── */
.cm-body {
    padding: 1.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cm-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 480px) { .cm-field-row { grid-template-columns: 1fr; } }

.cm-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cm-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f1f3d;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cm-required {
    color: #dc2626;
    margin-left: 1px;
}

.cm-input {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1a1a1a;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fafafa;
}

.cm-input:focus {
    border-color: #2a4a80;
    box-shadow: 0 0 0 3px rgba(42,74,128,0.1);
    outline: none;
    background: #fff;
}

textarea.cm-input { resize: vertical; min-height: 100px; }

/* ── TURNSTILE ── */
.cm-turnstile {
    margin-top: 0.25rem;
}

/* ── RESULT ── */
.cm-result {
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
}

.cm-result--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.cm-result--error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

/* ── FOOTER ── */
.cm-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    background: #f7f9fc;
    border-top: 1px solid #e2e8f0;
}

.cm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
    font-family: inherit;
}

.cm-btn--ghost {
    background: transparent;
    color: #6b7a99;
    border: 1.5px solid #e2e8f0;
}

.cm-btn--ghost:hover { background: #f0f4f8; color: #0f1f3d; }

.cm-btn--send {
    background: linear-gradient(135deg, #0f1f3d, #2a4a80);
    color: #fff;
}

.cm-btn--send:hover:not(:disabled) {
    background: linear-gradient(135deg, #1a3260, #3a5a90);
    transform: translateY(-1px);
}

.cm-btn--send:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Field validation states ── */
.cm-input--error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.12) !important;
}

.cm-input--ok {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1) !important;
}

.cm-field-error {
    display: none;
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: 0.3rem;
    font-weight: 500;
}

.cm-hint {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255,255,255,0.45);
    margin-left: 0.25rem;
}
