/* Moore Crest Builders - Quote Form Styles */

/* Quote Hero Section */
.quote-hero {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(165, 42, 42, 0.8)), url('../images/129.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0 60px;
    color: white;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.quote-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.quote-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    font-size: 1.2rem;
}

/* Quote Form Section */
.quote-form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.quote-intro {
    text-align: center;
    margin-bottom: 50px;
}

.quote-intro h2 {
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 15px;
    font-weight: 700;
}

.quote-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.quote-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Form Container */
.quote-form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.step-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.step-header h3 {
    font-size: 1.5rem;
    color: #8B0000;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-number {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.step-header p {
    color: #666;
    font-size: 1rem;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.main-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    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: #8B0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

/* Checkbox and Radio Styles */
.checkbox-grid {
    margin-bottom: 25px;
}

.checkbox-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.checkbox-label:hover,
.radio-label:hover {
    background: #f8f9fa;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #8B0000;
}

.checkmark,
.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.radio-mark {
    border-radius: 50%;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark,
.radio-label input[type="radio"]:checked + .radio-mark {
    background: #8B0000;
    border-color: #8B0000;
    color: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: "✓";
    font-size: 12px;
    font-weight: bold;
}

.radio-label input[type="radio"]:checked + .radio-mark:after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.checkbox-group {
    margin-bottom: 20px;
}

/* File Upload */
.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed #8B0000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #8B0000;
    font-weight: 600;
}

.file-upload-label:hover {
    background: #8B0000;
    color: white;
}

.file-input {
    display: none;
}

.upload-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.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(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    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: 20px;
    border-top: 2px solid #f0f0f0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-outline {
    background: white;
    color: #8B0000;
    border: 2px solid #8B0000;
}

.btn-outline:hover {
    background: #8B0000;
    color: white;
}

.next-btn,
.submit-btn {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
}

.next-btn:hover,
.submit-btn:hover {
    background: linear-gradient(135deg, #A52A2A, #B22222);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn.loading:after {
    content: "";
    animation: spin 1s linear infinite;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    margin-left: 10px;
}

/* Sidebar */
.quote-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.progress-card,
.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
}

.progress-card h3,
.info-card h3 {
    color: #8B0000;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: rgba(139, 0, 0, 0.1);
    border: 2px solid #8B0000;
}

.progress-step.completed {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22c55e;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: #8B0000;
    color: white;
}

.progress-step.completed .step-circle {
    background: #22c55e;
    color: white;
}

.step-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Info Cards */
.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.included-list li:last-child {
    border-bottom: none;
}

.check-icon {
    color: #22c55e;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem;
}

.why-choose-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.why-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.why-item strong {
    color: #8B0000;
    font-size: 1rem;
    margin-bottom: 5px;
    display: block;
}

.why-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Card */
.contact-card {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
}

.contact-card h3 {
    color: white;
}

.contact-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.2rem;
}

/* Next Steps Section */
.next-steps {
    padding: 80px 0;
    background: white;
}

.next-steps .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.next-steps .section-header h2 {
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 15px;
    font-weight: 700;
}

.next-steps .section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.step-card .step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.step-card h3 {
    color: #8B0000;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section */
.quote-cta {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(165, 42, 42, 0.8)), url('../images/129.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #A52A2A, #B22222);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #22c55e;
    background: #f0fdf4;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .quote-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .quote-hero {
        padding: 80px 0 40px;
    }
    
    .quote-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-benefits {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .quote-form-container {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .checkbox-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .quote-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .quote-form-container {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .quote-sidebar {
        order: -1;
    }
}