
/* --- General Body and Reset Styles --- */

/* Use a specific font for the entire page and set up the sunset gradient background */
body {
    font-family: 'Poppins', sans-serif;
    /* A beautiful sunset gradient from a warm orange to a deep twilight purple */
    background: linear-gradient(135deg, #FF7E5F, #FEB47B, #8A2387);
    background-size: 200% 200%; /* Make gradient larger to animate */
    animation: sunset-flow 15s ease infinite; /* Animate the background gradient */
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 2rem 1rem; /* Add padding for smaller screens */
    box-sizing: border-box;
}

/* A simple animation to make the sunset background feel alive */
@keyframes sunset-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Main Form Container --- */

/* The white card that holds the form content */
.quote-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 20px; /* Softer, rounded corners */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 800px; /* Set a max-width for larger screens */
    text-align: center;
}

/* --- Header and Footer Text --- */

.quote-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.quote-header p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-footer p {
    margin-top: 1.5rem;
    color: #555;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Form Grid and Input Fields --- */

/* A CSS Grid layout for the main input fields */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 1rem; /* Space between grid items */
    margin-bottom: 2rem;
}

/* General styling for all text inputs and the textarea */
.form-grid input,
.form-grid textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

/* Style for when a user clicks into an input field */
.form-grid input:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: #FF7E5F; /* Highlight with a sunset orange */
    box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.2);
}

/* Make the textarea span both columns of the grid */
.form-grid textarea {
    grid-column: 1 / -1; /* Span from the first column line to the last */
    resize: vertical; /* Allow vertical resizing only */
    min-height: 80px;
}

/* --- Service Selection Boxes --- */

.service-selection h2 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Flexbox for the service options to align them nicely */
.service-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Allow items to wrap onto the next line on small screens */
}

/* Hide the actual checkbox input */
.service-box input[type="checkbox"] {
    display: none;
}

/* Style the label to look like a clickable box */
.service-box label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 150px;
    height: 130px;
    text-align: center;
}

/* Style the SVG icons inside the service boxes */
.service-box svg {
    width: 48px;
    height: 48px;
    color: #8A2387; /* Twilight purple for the icons */
    margin-bottom: 0.75rem;
    transition: transform 0.3s;
}

.service-box span {
    font-weight: 600;
    color: #555;
}

/* Style for when a user hovers over a service box */
.service-box label:hover {
    border-color: #FEB47B; /* A lighter sunset orange */
    background-color: #fff9f5;
}

.service-box label:hover svg {
    transform: scale(1.1); /* Make the icon slightly larger on hover */
}

/* Style for when a service box is selected (checked) */
.service-box input[type="checkbox"]:checked + label {
    border-color: #FF7E5F; /* A vibrant sunset orange */
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.2);
    transform: translateY(-5px);
}

.service-box input[type="checkbox"]:checked + label svg {
    color: #FF7E5F;
}

/* --- Submit Button --- */

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    /* A matching sunset gradient for the button */
    background: linear-gradient(to right, #FF7E5F, #FEB47B);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 2rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 126, 95, 0.3);
}


/* --- Responsive Design for Mobile --- */

/* On screens smaller than 768px (like tablets and phones) */
@media (max-width: 768px) {
    .quote-container {
        padding: 2rem 1.5rem;
    }

    .quote-header h1 {
        font-size: 2rem;
    }
    
    /* Stack the form fields into a single column */
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* On screens smaller than 480px (small phones) */
@media (max-width: 480px) {
    .service-options {
        flex-direction: column; /* Stack service options vertically */
        align-items: center;
    }

    .service-box label {
        width: 100%; /* Make service boxes full width */
        max-width: 300px;
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

.btn-loading {
    display: none;
}

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

/* Form validation styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

