/* Book Order Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
}

.book-order-modal {
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: white;
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--background-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 60, 169, 0.1);
}

.address-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.4;
}

.price-info {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(44, 60, 169, 0.05) 0%, rgba(230, 53, 115, 0.05) 100%);
    border: 1px solid rgba(44, 60, 169, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-align: center;
}

.validation-message {
    color: var(--primary-pink);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.order-success {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.order-success h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.order-success p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.order-success strong {
    color: var(--text-dark);
}

/* Payment Notice */
.payment-notice {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-left: 4px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.notice-content {
    flex: 1;
}

.notice-content strong {
    color: #28a745;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.notice-content p {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.comments-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.4;
}

/* Modal Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-backdrop {
        padding: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .address-textarea {
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .modal-backdrop {
        padding: 0.25rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    .price-info {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}