/* === Modern Popup Styles for Order Form === */

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    /* UPDATED: Aligned to the top by default to work on all screen heights */
    align-items: flex-start; 
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Add padding to the top and allow for scrolling on the overlay itself */
    padding: 2rem 1rem;
    overflow-y: auto;
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Popup Content Box */
.popup-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 550px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    /* Add a margin to ensure it's not flush with the top on large screens */
    margin: auto;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}


/* Form Styling */
.popup-content h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-family: 'Kameron', serif;
    font-size: 1.8rem;
    color: #333;
}

.popup-content h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-family: 'Kameron', serif;
    font-size: 1.8rem;
    color: #333;
}

#orderForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#orderForm label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: bold;
    font-size: 0.9rem;
    color: #555;
}

#orderForm input[type="text"],
#orderForm textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box; 
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#orderForm input[type="text"]:focus,
#orderForm textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

#orderForm textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form Actions (Buttons) */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

#orderForm button {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: opacity 0.2s;
}

#orderForm button:hover {
    opacity: 0.85;
}

/* Primary Submit Button */
#orderForm button[type="submit"] {
    background-color: #007bff;
    color: white;
}

/* Secondary Cancel Button */
#orderForm #closePopup {
    background-color: #6c757d;
    color: white;
}


/* Responsive Adjustments: This block is now simplified as the defaults are better */
@media (max-width: 600px) {
    .popup-content {
        padding: 1.5rem 1rem;
    }

    .popup-content h2 {
        font-size: 1.5rem;
    }
    
    #orderForm {
        gap: 0.75rem;
    }
}

/* === Success Notification Styles === */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745; /* Success green */
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    
    /* Animation properties */
    opacity: 0;
    transform: translateY(-30px);
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.notification-content {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.notification-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}