/* Request a Demo modal (site-wide) */
.cs-demo-modal .modal-dialog {
    max-width: 560px;
}

.cs-demo-modal .modal-content {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    position: relative;
}

.cs-demo-modal .modal-body {
    padding: 24px;
    background: #ffffff;
}

.cs-demo-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #111827;
    z-index: 2;
}

.cs-demo-modal-title {
    margin: 0 0 8px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.1;
    color: #0f172a;
    font-weight: 700;
}

.cs-demo-modal-subtitle {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #4b5563;
}

.cs-demo-field {
    margin-bottom: 10px;
}

.cs-demo-field .form-control {
    min-height: 46px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    color: #121826;
    box-shadow: none;
}

.cs-demo-field .form-control::placeholder {
    color: #a8b0bf;
}

.cs-demo-field select.form-control {
    font-size: 1rem;
    color: #0f172a;
}

.cs-demo-textarea.form-control {
    min-height: 96px;
    resize: vertical;
    padding-top: 10px;
}

.cs-demo-submit-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    transition: opacity .2s ease;
}

.cs-demo-submit-btn:disabled {
    opacity: 0.7;
}

.cs-demo-form-feedback {
    min-height: 20px;
    margin: 4px 0 8px;
    font-size: 0.95rem;
}

.cs-demo-form-feedback.is-success { color: #166534; }
.cs-demo-form-feedback.is-error { color: #b91c1c; }

span.cs-demo-error {
    display: block;
    margin-top: 4px;
    color: #b91c1c;
    font-size: 0.85rem;
}

.cs-demo-field .form-control.is-invalid {
    border-color: #ef4444;
}

.cs-demo-phone-group .iti {
    display: block;
    width: 100%;
}

.cs-demo-phone-group .iti__tel-input,
.cs-demo-phone-group .iti__tel-input.form-control {
    width: 100%;
    padding-left: 96px;
}

.cs-demo-phone-group .iti__flag-container {
    border-radius: 6px 0 0 6px;
}

.cs-demo-phone-group .iti--invalid .iti__tel-input {
    border-color: #ef4444;
}

body.modal-open .cs-header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 580px) {
    .cs-demo-modal .modal-body { padding: 18px 14px; }
    .cs-demo-modal-subtitle { font-size: 0.95rem; }
    .cs-demo-field .form-control { font-size: 0.95rem; min-height: 44px; }
    .cs-demo-field select.form-control { font-size: 0.95rem; }
    .cs-demo-submit-btn { font-size: 1rem; min-height: 46px; }
}
