/* ==========================================================================
   forms.css — modal dialogs and contact forms.

   Lifted verbatim out of the old homepage's inline <style> so the homepage and
   /solution/ share one implementation. Already on-palette: it uses the same
   --navy-* and --teal tokens as the rest of the site, so nothing was restyled
   in the move.

   Load AFTER css/sectors.css, which defines the tokens.
   ========================================================================== */
.modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(7,14,26,.85);
            backdrop-filter: blur(4px);
            z-index: 9999;
            overflow-y: auto;
            padding: 2rem 1rem;
}

.modal-content {
            background: var(--navy-card);
            border: 1px solid var(--navy-border);
            border-radius: 16px;
            max-width: 540px;
            margin: 2rem auto;
            overflow: hidden;
}

.modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--navy-border);
}

.modal-header h2 {
            font-family: 'DM Serif Display', serif;
            font-size: 1.5rem;
            color: var(--text-heading);
            margin: 0;
}

.close-modal {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            cursor: pointer;
            color: var(--text-muted);
            font-size: 1.5rem;
            line-height: 1;
            transition: background .2s, color .2s;
}

.close-modal:hover {
            background: var(--navy-mid);
            color: var(--text-heading);
}

.modal-body { padding: 2rem;
}

.modal-description {
            font-size: .95rem;
            color: var(--text-body);
            margin-bottom: 1.75rem;
}

.demo-form { display: flex; flex-direction: column; gap: 1.25rem;
}

.demo-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.demo-form .form-group { display: flex; flex-direction: column; gap: .4rem;
}

.demo-form label {
            font-size: .85rem;
            font-weight: 500;
            color: var(--text-body);
}

.demo-form input {
            background: var(--navy-mid);
            border: 1px solid var(--navy-border);
            border-radius: 8px;
            padding: .65rem 1rem;
            color: var(--text-heading);
            font-size: .95rem;
            font-family: 'Outfit', sans-serif;
            transition: border-color .2s;
            outline: none;
}

.demo-form input:focus { border-color: var(--teal);
}

.demo-form input::placeholder { color: var(--text-muted);
}

.demo-form small { font-size: .8rem; color: var(--text-muted);
}

.demo-form .required { color: var(--teal);
}

.form-actions {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
            margin-top: .5rem;
}

.form-message {
            text-align: center;
            padding: 2rem;
}

.form-message .message-icon {
            font-size: 2rem;
            margin-bottom: .75rem;
}

.form-message.success .message-icon { color: var(--teal);
}

.form-message.error .message-icon { color: var(--danger);
}

.form-message h3 { font-size: 1.25rem; color: var(--text-heading); margin-bottom: .5rem;
}

.form-message p { color: var(--text-body); font-size: .95rem;
}

.demo-form .form-row { grid-template-columns: 1fr;
}
