/* Hampshire Resin Driveways - Quote Page Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

/* Quote Hero Section */
.quote-hero {
    height: 500px;
    background-image: url('../../images/services1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 0;
    padding-top: 90px;
    position: relative;
}

.quote-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.quote-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.quote-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
    max-width: 100%;
}

.quote-hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.benefit-icon {
    font-size: 1.2rem;
}

/* Guarantee Banner */
.guarantee {
    background: #fbbf24;
    padding: 16px 0;
    text-align: center;
}

.guarantee-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 4px;
}

.guarantee-text {
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.guarantee .phone-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 8px;
    gap: 8px;
}

.guarantee .phone-info a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guarantee .phone-info a:hover {
    color: #374151;
}

/* Quote Form Section */
.quote-form-section {
    padding: 80px 0;
    background: #f8fafc;
}

.quote-intro {
    text-align: center;
    margin-bottom: 50px;
}

.quote-intro h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 600;
}

.quote-intro p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.quote-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    grid-gap: 60px;
    align-items: start;
}

/* Form Container */
.quote-form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
    display: block;
}

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

.step-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.step-header h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.step-header p {
    color: #64748b;
    font-size: 1rem;
    margin-left: 52px;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    grid-gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.main-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

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

.form-group small {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Checkbox and Radio Styles */
.checkbox-grid {
    margin-bottom: 25px;
}

.checkbox-options {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #f1f5f9;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.checkbox-label:hover,
.radio-label:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #2563eb;
}

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

.checkbox-group .checkbox-label {
    border: none;
    padding: 8px 0;
    background: none;
}

.radio-group {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

/* File Upload */
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #2563eb;
    background: #f1f5f9;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.file-input {
    display: none;
}

.image-preview {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.next-btn,
.submit-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.next-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.prev-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.prev-btn:hover {
    background: #e2e8f0;
    color: #374151;
}

/* Quote Sidebar */
.quote-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Progress Card */
.progress-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.progress-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 600;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #2563eb;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.progress-step.completed .step-circle {
    background: #10b981;
    color: white;
}

.step-label {
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s ease;
}

.progress-step.active .step-label {
    color: #2563eb;
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.info-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 600;
}

.included-list {
    list-style: none;
    padding: 0;
}

.included-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.95rem;
}

.check-icon {
    color: #10b981;
    font-weight: bold;
    font-size: 1rem;
}

.why-choose-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.why-icon {
    font-size: 1.5rem;
}

.why-item strong {
    font-size: 0.95rem;
    color: #1e293b;
    display: block;
}

.why-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Contact Card */
.contact-card p {
    color: #64748b;
    margin-bottom: 20px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-option:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.contact-icon {
    font-size: 1.1rem;
}

/* What Happens Next Section */
.next-steps {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    grid-gap: 30px;
}

.step-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: relative;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-card .step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.step-icon {
    font-size: 2.5rem;
    margin: 20px 0 15px;
}

.step-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Quote CTA Section */
.quote-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: #1e293b;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quote-hero {
        height: 420px;
        padding-top: 80px;
    }

    .quote-hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
        text-wrap: balance;
        max-width: 90%;
    }

    .quote-hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-benefits {
        gap: 20px;
        margin-top: 20px;
    }

    .benefit {
        font-size: 0.95rem;
    }

    .guarantee {
        padding: 20px 0;
    }

    .guarantee .phone-info {
        flex-direction: column;
        gap: 4px;
        margin-top: 12px;
    }

    .guarantee .phone-info a {
        font-size: 1.1rem;
        font-weight: bold;
    }

    .quote-intro h2 {
        font-size: 2rem;
    }

    .quote-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        grid-gap: 40px;
    }

    .quote-form-container {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        grid-gap: 0;
    }

    .step-header h3 {
        font-size: 1.5rem;
    }

    .step-header p {
        margin-left: 0;
        margin-top: 8px;
    }

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

    .prev-btn,
    .next-btn,
    .submit-btn {
        width: 100%;
    }

    .progress-steps {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 10px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        grid-gap: 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 250px;
    }

    .quote-form-section,
    .next-steps,
    .quote-cta {
        padding: 50px 0;
    }

    .file-upload-label {
        padding: 20px 15px;
    }

    .checkbox-options {
        gap: 8px;
    }

    .checkbox-label,
    .radio-label {
        padding: 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .quote-grid {
        gap: 40px;
        grid-gap: 40px;
    }

    .hero-benefits {
        gap: 30px;
    }
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Success States */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}