/**
 * public.css - Public-facing Page Styles
 * Wasatch Cleaners Landing Page
 */

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ============================================
   HEADER
   ============================================ */

header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
    border-radius: 8px;
}

.logo h1 {
    font-size: 1.8rem;
    color: #092548;
    font-weight: 700;
}


/* ============================================
   CTA BUTTON
   ============================================ */

.cta-button {
    background-color: #31807A;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(49, 128, 122, 0.3);
}

.cta-button:hover {
    background-color: #266862;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 128, 122, 0.4);
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
                url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hero h2 {
    font-size: 2.5rem;
    color: #092548;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
}


/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #092548;
    margin-bottom: 50px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #31807A;
}

.service-card i {
    font-size: 2.5rem;
    color: #3FA69E;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.service-card p {
    color: #666;
}

.checked {
    color: #31807A;
}


/* ============================================
   CONTACT INFO
   ============================================ */

.contact-info {
    background-color: #ffffff;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #092548;
    font-weight: 700;
}

.contact-info p {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #555;
}

.contact-info a {
    color: #31807A;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #31807A;
    text-decoration: underline;
}

.guarantee {
    font-style: italic;
    margin-top: 30px;
    font-size: 1.1rem;
    color: #666;
}


/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: #1f2937;
    color: #f8f9fa;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
}


/* ============================================
   MODAL STYLES
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease-out;
}

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

.modal {
    background-color: white;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.4s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, #31807A, #31807A);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
}

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

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 30px;
}


/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: 25px;
}

fieldset.form-group {
    border: 0;
    padding: 0;
    margin: 0 0 25px;
    min-inline-size: auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

legend {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    padding: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.field-helper {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    margin-top: -5px;
    line-height: 1.4;
}

.required::after {
    content: " *";
    color: #e74c3c;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input {
    margin-right: 8px;
    accent-color: #31807A;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #31807A;
    box-shadow: 0 0 0 3px rgba(49, 128, 122, 0.2);
}


/* ============================================
   STEPPER COMPONENT
   ============================================ */

.stepper {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.stepper button {
    background-color: #e9ecef;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #31807A;
}

.stepper button:hover {
    background-color: #dee2e6;
}

.stepper input {
    width: 70px;
    text-align: center;
    margin: 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
}


/* ============================================
   CHECKBOX & SUBMIT
   ============================================ */

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.checkbox-group input {
    margin-right: 10px;
    accent-color: #31807A;
}

.submit-btn {
    background-color: #31807A;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(49, 128, 122, 0.3);
}

.submit-btn:hover {
    background-color: #31807A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(49, 128, 122, 0.4);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}


/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.success-message {
    text-align: center;
    padding: 60px 30px;
    display: none;
}

.success-message i {
    font-size: 4rem;
    color: #31807A;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.success-message h3 {
    font-size: 1.8rem;
    color: #31807A;
    margin-bottom: 15px;
    font-weight: 700;
}


/* ============================================
   CONDITIONAL FIELDS
   ============================================ */

.conditional-field {
    display: none;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 15px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .modal {
        width: 95%;
        border-radius: 16px;
    }

    .modal-header {
        border-radius: 16px 16px 0 0;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }

    .stepper {
        border-radius: 8px;
    }

    .stepper button {
        width: 36px;
        height: 36px;
    }
}
