/**
 * Demo Request Modal Styles
 * File: assets/css/demo-modal.css
 */

/* Modal Overlay */
.demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 28, 57, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.demo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.demo-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.demo-modal-header {
    padding: 2rem 2.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #061C39 0%, #0a2540 100%);
    border-radius: 16px 16px 0 0;
}

.demo-modal-header h2 {
    font-size: 1.75rem;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin: 0;
}

.demo-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.demo-modal-close:hover {
    background: rgba(255, 192, 0, 0.2);
    color: #FFC000;
    transform: rotate(90deg);
}

/* Modal Body */
.demo-modal-body {
    padding: 2.5rem;
}

.demo-modal-intro {
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form Styles */
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #061C39;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: #dc2626;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FFC000;
    box-shadow: 0 0 0 3px rgba(255, 192, 0, 0.1);
}

.form-group input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
    color: #94a3b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Phone Input Special Styling */
.phone-group {
    grid-column: 1 / -1;
}

.phone-input-wrapper {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 0.75rem;
}

.country-select {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.phone-input {
    flex: 1;
}

.phone-format-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.phone-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
}

/* Form Actions */
.form-actions {
    margin-top: 1rem;
}

.btn-submit {
    width: 40%;
    padding: 1rem 2rem;
    background: #FFC000;
    color: #061C39;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
    background: #e6ac00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 192, 0, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    color: #10b981;
    background: #d1fae5;
    border-radius: 50%;
    padding: 20px;
    margin-bottom: 1.5rem;
}

.form-success h3 {
    font-size: 1.75rem;
    color: #061C39;
    margin-bottom: 0.75rem;
}

.form-success p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn-close-success {
    padding: 0.875rem 2.5rem;
    background: #FFC000;
    color: #061C39;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-success:hover {
    background: #e6ac00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 192, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .demo-modal-content {
        max-height: 95vh;
        margin: 10px;
    }

    .demo-modal-header {
        padding: 1.5rem;
    }

    .demo-modal-header h2 {
        font-size: 1.5rem;
    }

    .demo-modal-body {
        padding: 1.5rem;
    }

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

    .phone-input-wrapper {
        grid-template-columns: 1fr;
    }

    .form-success {
        padding: 2rem 1rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        padding: 15px;
    }
}

/* Scrollbar Styling for Modal Content */
.demo-modal-content::-webkit-scrollbar {
    width: 8px;
}

.demo-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 16px 16px 0;
}

.demo-modal-content::-webkit-scrollbar-thumb {
    background: #FFC000;
    border-radius: 4px;
}

.demo-modal-content::-webkit-scrollbar-thumb:hover {
    background: #e6ac00;
}
