/* ===================================
   ORDER FORM MODAL STYLES
   =================================== */

/* === MODAL OVERLAY === */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.order-modal.active {
    display: flex;
}

.order-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* === MODAL CONTENT === */
.order-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    z-index: 1;
}

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

/* === MODAL HEADER === */
.order-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.order-modal-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.order-modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.order-modal-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* === CLOSE BUTTON === */
.order-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.order-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* === ORDER FORM === */
.order-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-navy);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark-navy);
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 90, 174, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

/* === SERVICE INFO === */
.service-info {
    background: linear-gradient(135deg, rgba(43, 90, 174, 0.05), rgba(124, 58, 237, 0.05));
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.service-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-details {
    font-size: 0.875rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* === FORM ACTIONS === */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-gray);
}

.form-actions .btn {
    flex: 1;
    justify-content: center;
}

/* === NOTIFICATION SYSTEM === */
.notification {
    position: fixed;
    top: 100px;
    right: -400px;
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    z-index: 10001;
    transition: right 0.3s ease;
}

.notification.show {
    right: 2rem;
}

.notification-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    color: #10B981;
}

.notification-error .notification-icon {
    color: #EF4444;
}

.notification-info .notification-icon {
    color: var(--primary);
}

.notification-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark-navy);
}

.notification-content p {
    font-size: 0.875rem;
    color: var(--dark-gray);
    line-height: 1.5;
    margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .order-modal-content {
        max-height: 95vh;
        margin: 0;
    }
    
    .order-modal-header {
        padding: 1.5rem;
    }
    
    .order-modal-header i {
        font-size: 2.5rem;
    }
    
    .order-modal-header h3 {
        font-size: 1.5rem;
    }
    
    .order-form {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .notification {
        max-width: calc(100% - 2rem);
        right: -100%;
    }
    
    .notification.show {
        right: 1rem;
    }
}

/* === CUSTOM SCROLLBAR FOR MODAL === */
.order-modal-content::-webkit-scrollbar {
    width: 8px;
}

.order-modal-content::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.order-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.order-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}
