/* Goshen Auto - Book Service Page Styles */

/* Base form container styling */
.form-container {
    background: var(--brand-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 650px;
    margin: 2rem auto;
    box-sizing: border-box;
}

html.dark-mode .form-container {
    background-color: var(--dm-brand-white);
}

.form-title {
    color: var(--brand-dark);
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

html.dark-mode .form-title {
    color: var(--dm-brand-dark);
}

/* Step headings and paragraphs */
.form-step h3 {
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

html.dark-mode .form-step h3 {
    color: var(--dm-brand-dark);
}

.form-step p {
    color: var(--brand-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

/* Progress bar styling */
.progress-bar {
    background: #e0e0e0; /* Changed background color to grey */
    height: 8px;
    border-radius: 4px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

html.dark-mode .progress-bar {
    background-color: #555555;
}

.progress-fill {
    background: var(--brand-primary);
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

html.dark-mode .progress-fill {
    background-color: var(--brand-accent-green); /* Changed to green for dark mode */
}

/* Form inputs and labels */
label {
    display: block;
    color: var(--brand-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

html.dark-mode label {
    color: var(--dm-brand-text-secondary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--brand-border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--brand-dark);
    background-color: var(--brand-white);
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html.dark-mode input[type="text"],
html.dark-mode input[type="email"],
html.dark-mode input[type="tel"],
html.dark-mode input[type="number"],
html.dark-mode input[type="date"],
html.dark-mode select,
html.dark-mode textarea {
    background-color: var(--dm-brand-bg-alt);
    color: var(--dm-brand-dark);
    border-color: var(--dm-brand-border-color);
}


input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(var(--brand-primary-rgb), 0.2);
    outline: none;
}

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

/* Radio buttons and checkboxes */
.quote-items label,
.radio-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--brand-primary);
}

/* Form buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-buttons button {
    padding: 0.85rem 1.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
}

button.next, button[type="submit"].next {
    background: var(--brand-primary);
    color: var(--brand-white);
    border: 1px solid var(--brand-primary);
}

button.next:hover, button[type="submit"].next:hover {
    background: var(--brand-primary-darker);
    border-color: var(--brand-primary-darker);
    transform: translateY(-1px);
}

button.prev {
    background: var(--brand-white);
    color: var(--brand-dark);
    border: 1px solid var(--brand-border-color);
}

html.dark-mode button.prev {
    background: var(--dm-brand-bg-alt);
    color: var(--dm-brand-dark);
    border-color: var(--dm-brand-border-color);
}

button.prev:hover {
    background: var(--brand-bg-alt);
    transform: translateY(-1px);
}

html.dark-mode button.prev:hover {
    background: var(--dm-brand-bg-alt);
}

/* Form steps and animations */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Input error styling */
input.error, select.error, textarea.error {
    border-color: #EF4444 !important;
    background-color: #FEE2E2;
}

html.dark-mode input.error,
html.dark-mode select.error,
html.dark-mode textarea.error {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: #EF4444 !important;
}

label.error-text {
    color: #EF4444;
    font-size: 0.8rem;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Quotation Grid Layout --- */
.quote-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem; /* Add space between columns */
}

.quote-grid .column {
    flex: 1; /* Make columns grow equally */
    display: flex;
    flex-direction: column;
}

/* Success Message screen */
#successMessage {
    text-align: center;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

#successMessage .car-emoji {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

#successMessage h3 {
    color: var(--brand-primary);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

html.dark-mode #successMessage h3 {
    color: var(--dm-brand-primary);
}

#successMessage p.main-thanks {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-dark);
}

html.dark-mode #successMessage p.main-thanks {
    color: var(--dm-brand-dark);
}

#successMessage p.sub-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--brand-text-secondary);
}

html.dark-mode #successMessage p.sub-text {
    color: var(--dm-brand-text-secondary);
}

/* Responsive Design Adjustments */
@media (max-width: 600px) {
    .form-container {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .form-title {
        font-size: 1.8rem;
    }

    .form-step h3 {
        font-size: 1.35rem;
    }
    
    .form-step p {
        font-size: 0.9rem;
    }

    .form-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .form-buttons button {
        width: 100%;
    }

    /* Stack columns vertically on mobile */
    .quote-grid {
        flex-direction: column;
        gap: 0;
    }
}
