/* =========================================================
   Showroom Appointment CTA & Modal
   ========================================================= */

/* Floating CTA on home page */
.sa-cta-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #5b4bc4 100%);
    color: #fff;
    overflow: hidden;
}
.sa-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.sa-cta-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}
.sa-cta-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.sa-cta-text h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 5px;
    color: #fff;
}
.sa-cta-text p {
    font-size: 15px;
    margin: 0;
    color: rgba(255,255,255,0.9);
    max-width: 360px;
}
.sa-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    text-decoration: none;
    white-space: nowrap;
}
.sa-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    color: var(--primary);
}
.sa-cta-btn i {
    font-size: 14px;
    transition: transform 0.2s;
}
.sa-cta-btn:hover i {
    transform: translateX(4px);
}

/* Modal */
.sa-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.sa-modal.active {
    display: flex;
}
.sa-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}
.sa-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--white, #fff);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    animation: saModalIn 0.3s ease;
    z-index: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sa-modal-content::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}
@keyframes saModalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.sa-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100, #f8f9fa);
    color: var(--gray-600, #6c757d);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.sa-modal-close:hover {
    background: #ea5455;
    color: #fff;
}
.sa-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-right: 40px;
}
.sa-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.sa-modal-header h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: var(--dark, #1a1a2e);
}
.sa-modal-header p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-500, #adb5bd);
}

/* Form */
.sa-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.sa-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sa-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-700, #495057);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sa-form-group label i {
    color: var(--primary, #667eea);
    font-size: 12px;
}
.sa-required {
    color: #ea5455;
    font-size: 12px;
}
.sa-form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200, #e9ecef);
    border-radius: 12px;
    font-size: 14px;
    color: var(--dark, #1a1a2e);
    background: var(--white, #fff);
    transition: all 0.2s;
}
.sa-form-control:focus {
    border-color: var(--primary, #667eea);
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}
.sa-textarea-sm {
    min-height: 80px;
    resize: vertical;
}
.sa-form-actions {
    margin-top: 4px;
}
.sa-btn-primary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    background: var(--primary, #667eea);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.25);
}
.sa-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(102, 126, 234, 0.35);
}
.sa-btn-primary:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}
.sa-form-message {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.sa-message-success {
    background: rgba(40, 199, 111, 0.08);
    color: #28c76f;
    border: 1px solid rgba(40, 199, 111, 0.2);
}
.sa-message-error {
    background: rgba(234, 84, 85, 0.08);
    color: #ea5455;
    border: 1px solid rgba(234, 84, 85, 0.2);
}

/* Dark mode */
[data-theme="dark"] .sa-cta-section {
    background: linear-gradient(135deg, #5a4bc4 0%, #3e2f8a 100%);
}
[data-theme="dark"] .sa-cta-btn {
    background: #1e1e2e;
    color: #8fa2ff;
}
[data-theme="dark"] .sa-cta-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, #5b4bc4 100%);
    color: #fff;
}
[data-theme="dark"] .sa-modal-content {
    background: #1e1e2e;
    border: 1px solid #2d2d3d;
}
[data-theme="dark"] .sa-modal-close {
    background: #252536;
    color: #b0b3b8;
}
[data-theme="dark"] .sa-modal-close:hover {
    background: #ff6b6b;
    color: #fff;
}
[data-theme="dark"] .sa-modal-icon {
    background: rgba(102, 126, 234, 0.12);
    color: #8fa2ff;
}
[data-theme="dark"] .sa-modal-header h3 {
    color: #e4e6eb;
}
[data-theme="dark"] .sa-modal-header p,
[data-theme="dark"] .sa-form-group label {
    color: #b0b3b8;
}
[data-theme="dark"] .sa-form-control {
    background: #252536;
    border-color: #3a3a4a;
    color: #e4e6eb;
}
[data-theme="dark"] .sa-form-control:focus {
    border-color: var(--primary, #667eea);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}
[data-theme="dark"] .sa-message-success {
    background: rgba(40, 199, 111, 0.12);
    color: #4ade80;
    border-color: rgba(40, 199, 111, 0.25);
}
[data-theme="dark"] .sa-message-error {
    background: rgba(234, 84, 85, 0.12);
    color: #ff6b6b;
    border-color: rgba(234, 84, 85, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .sa-cta-section { padding: 28px 0; }
    .sa-cta-wrap { flex-direction: column; text-align: center; gap: 18px; }
    .sa-cta-content { flex-direction: column; gap: 12px; }
    .sa-cta-text h3 { font-size: 19px; }
    .sa-cta-text p { max-width: 100%; font-size: 14px; }
    .sa-cta-icon { width: 50px; height: 50px; font-size: 20px; }
    .sa-cta-btn { width: 100%; justify-content: center; }
    .sa-form-row { grid-template-columns: 1fr; }
    .sa-modal-content { padding: 22px 18px; border-radius: 18px; }
    .sa-modal-header h3 { font-size: 18px; }
    .sa-modal-icon { width: 46px; height: 46px; font-size: 18px; }
}

@media (max-width: 576px) {
    .sa-cta-section { padding: 18px 0; }
    .sa-cta-wrap { gap: 12px; }
    .sa-cta-content { gap: 10px; }
    .sa-cta-icon { width: 40px; height: 40px; font-size: 16px; }
    .sa-cta-text h3 { font-size: 16px; margin: 0 0 3px; }
    .sa-cta-text p { font-size: 12px; }
    .sa-cta-btn { padding: 9px 18px; font-size: 13px; }

    .sa-modal {
        padding: 16px 14px 84px;
        align-items: center;
    }
    .sa-modal-content {
        max-width: 100%;
        max-height: calc(100vh - 110px);
        border-radius: 18px;
        padding: 16px 14px 18px;
    }
    .sa-modal-header {
        gap: 10px;
        margin-bottom: 14px;
        padding-right: 36px;
    }
    .sa-modal-header h3 { font-size: 17px; }
    .sa-modal-header p { font-size: 12px; }
    .sa-modal-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
    .sa-modal-close { top: 12px; right: 12px; width: 32px; height: 32px; font-size: 13px; }
    .sa-modal-form { gap: 10px; }
    .sa-form-row { gap: 10px; }
    .sa-form-group { gap: 4px; }
    .sa-form-group label { font-size: 12px; }
    .sa-form-control { padding: 10px 12px; font-size: 13px; border-radius: 10px; }
    .sa-textarea-sm { min-height: 60px; }
    .sa-btn-primary { padding: 12px 18px; font-size: 14px; border-radius: 10px; }
    .sa-form-message { padding: 10px 12px; font-size: 13px; }
}

@media (max-width: 360px) {
    .sa-cta-section { padding: 14px 0; }
    .sa-cta-icon { width: 36px; height: 36px; font-size: 14px; }
    .sa-cta-text h3 { font-size: 14px; margin: 0 0 2px; }
    .sa-cta-text p { font-size: 11px; }
    .sa-cta-btn { padding: 8px 16px; font-size: 12px; }
    .sa-modal-content { padding: 14px 12px 16px; }
    .sa-modal-header h3 { font-size: 16px; }
    .sa-btn-primary { padding: 11px 16px; font-size: 13px; }
}
