/* Contact modal (shared across marketing pages — see /js/contact-modal.js) */
.contact-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow-x: hidden;
    padding: 16px;
}

.contact-modal.is-visible {
    display: flex;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 28, 0.85);
    backdrop-filter: blur(6px);
}

.contact-modal-content {
    position: relative;
    width: 100%;
    max-width: min(calc(100vw - 32px), 500px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 24px;
    z-index: 1001;
    color: #e2e8f0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .contact-modal {
        padding: 0;
    }

    .contact-modal-content {
        padding: 28px 28px 32px;
        max-height: 90vh;
    }
}

.contact-modal h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-modal p {
    margin: 0 0 18px;
    color: #cbd5f5;
}

.contact-modal form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-modal .form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-modal label {
    font-size: 0.9rem;
    color: #94a3b8;
}

.contact-modal input[type="text"],
.contact-modal input[type="email"],
.contact-modal textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: #f8fafc;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.contact-modal input[type="text"]:disabled,
.contact-modal input[type="email"]:disabled,
.contact-modal textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.contact-modal textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-modal input[type="text"]:focus,
.contact-modal input[type="email"]:focus,
.contact-modal textarea:focus {
    outline: none;
    border-color: #6279e6;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.contact-modal input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6279e6;
}

.contact-modal .checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-modal .checkbox-field label {
    cursor: pointer;
    user-select: none;
}

.contact-modal button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6279e6 0%, #3842ba 100%);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.contact-modal button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.35);
}

.contact-modal button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.contact-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
}

.contact-modal-close:hover {
    color: #e2e8f0;
}

.contact-status {
    min-height: 20px;
    font-size: 0.9rem;
    margin-top: 12px;
}

.contact-status.success {
    color: #4ade80;
}

.contact-status.error {
    color: #f87171;
}

.contact-modal .recaptcha-container {
    margin: 8px 0;
}

body.modal-open {
    overflow: hidden;
}
