/* Pendle Stoves Quote Form Styles */

/* Reset and Base Styles */
.pendle-quote-container * {
    box-sizing: border-box;
}

.pendle-quote-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}



/* Main Content */
.pendle-quote-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
    min-height: 100vh;
    position: relative;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .pendle-quote-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quote-sidebar {
        position: fixed !important;
        top: auto !important;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        border-top: 2px solid #f2751f;
        padding: 15px;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
        width: 100%;
        height: auto;
    }
    
    .price-display {
        padding: 15px;
        margin: 0;
    }
    
    .price-breakdown {
        display: none; /* Hide breakdown on mobile */
    }
    
    .quote-benefits {
        display: none; /* Hide benefits on mobile */
    }
    
    .price-total {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .quote-progress {
        margin-bottom: 15px;
    }
    
    /* Add padding to bottom of main content to account for fixed sidebar */
    .quote-form {
        margin-bottom: 140px;
    }
    
    /* Ensure the main container doesn't interfere */
    .pendle-quote-container {
        padding-bottom: 0;
    }
    
    /* Hide desktop navigation on mobile */
    .desktop-navigation {
        display: none !important;
    }
    
    /* Show mobile navigation in sidebar */
    .mobile-navigation {
        display: flex !important;
        justify-content: flex-end;
        gap: 15px;
        padding: 15px 0;
        margin-top: 15px;
        border-top: 1px solid #e2e8f0;
    }
    
    .mobile-navigation .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        flex: 0 1 auto;
    }
    
    /* Mobile Sidebar Optimization */
    .quote-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        z-index: 1000;
        background: white;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 15px;
        max-height: none;
        height: auto;
    }
    
    .quote-sidebar .price-breakdown,
    .quote-sidebar .quote-benefits,
    .quote-sidebar .price-display h3,
    .quote-sidebar .price-total .price-label {
        display: none;
    }
    
    .quote-form {
        margin-bottom: 100px;
    }
    
    .mobile-navigation {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        padding: 0;
        margin-top: 0;
        border-top: none;
    }
    
    .mobile-quote-display {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .mobile-quote-label {
        color: #64748b;
        font-weight: 500;
    }
    
    .mobile-quote-amount {
        color: #f2751f;
        font-weight: 600;
        font-size: 1.1rem;
    }
    
    .mobile-buttons {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        width: 100%;
    }
    
    .mobile-buttons .btn {
        flex: 0 1 auto;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Quote Intro */
.quote-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.quote-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.quote-intro p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}



/* Form Styles */
.quote-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-step {
    padding: 30px;
}

.form-step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 25px 0;
    text-align: center;
}

/* Option Grid */
.option-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.option-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-card:hover {
    border-color: #f2751f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 117, 31, 0.15);
}

.option-card.selected {
    border-color: #f2751f;
    background: #fef7f0;
    box-shadow: 0 8px 25px rgba(242, 117, 31, 0.2);
    position: relative;
    padding-right: 30px;
}

.option-card.selected::before {
    content: "✓ SELECTED";
    position: absolute;
    top: 15px;
    right: -10px;
    background: linear-gradient(135deg, #f2751f 0%, #e35d14 100%);
    color: white;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px 0 0 20px;
    box-shadow: 0 2px 8px rgba(242, 117, 31, 0.3);
    z-index: 10;
    transform: rotate(0deg);
    letter-spacing: 0.5px;
    animation: ribbonSlide 0.3s ease-out;
}

@keyframes ribbonSlide {
    from {
        opacity: 0;
        transform: translateX(20px) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

.option-image {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
}

.option-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.option-content p {
    color: #64748b;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.option-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #64748b;
}

.option-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f2751f;
    text-align: center;
}

/* Option Tags */
.option-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tag {
    background: #f2751f;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.feature-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-option:hover {
    border-color: #f2751f;
    background: #fef7f0;
}

.feature-option input[type="checkbox"] {
    margin-right: 10px;
}

.feature-name {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
}

.feature-price {
    font-weight: 600;
    color: #f2751f;
}

/* Installation Options */
.installation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.installation-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.installation-option:hover {
    border-color: #f2751f;
    transform: translateY(-2px);
}

.installation-option.selected {
    border-color: #f2751f;
    background: #fef7f0;
}

.installation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.installation-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.installation-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f2751f;
}

.installation-option p {
    color: #64748b;
    margin: 0 0 15px 0;
}

.installation-duration {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.installation-includes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.installation-includes li {
    padding: 5px 0;
    color: #64748b;
    position: relative;
    padding-left: 20px;
}

.installation-includes li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f2751f;
    font-weight: bold;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-group input {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #f2751f;
}

/* Quote Summary */
.quote-summary {
    max-width: 600px;
    margin: 0 auto;
}

.summary-details {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #f2751f;
}

.summary-label {
    color: #64748b;
}

.summary-value {
    color: #1e293b;
    font-weight: 500;
}

.summary-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #f2751f 0%, #e35d14 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 117, 31, 0.3);
}

.btn-secondary {
    background: white;
    color: #f2751f;
    border: 2px solid #f2751f;
}

.btn-secondary:hover {
    background: #f2751f;
    color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Desktop navigation */
.desktop-navigation {
    display: flex;
}

/* Mobile navigation - hidden by default on desktop */
.mobile-navigation {
    display: none;
}

/* Sidebar */
.quote-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 100;
    position: -webkit-sticky; /* Safari support */
}

.price-display {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.price-display h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
    text-align: center;
}

.price-total {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #fef7f0 0%, #fdecd8 100%);
    border-radius: 12px;
}

.price-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f2751f;
    margin-bottom: 5px;
}

.price-label {
    font-size: 0.9rem;
    color: #64748b;
}

.price-breakdown {
    margin-bottom: 25px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
}

.breakdown-label {
    color: #64748b;
}

.breakdown-price {
    font-weight: 500;
    color: #1e293b;
}

/* Progress Bar */
.quote-progress {
    margin-bottom: 25px;
}

/* Step Progress Bar */
.step-progress {
    margin-bottom: 25px;
}

.step-progress .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #5F6368;
    font-weight: 500;
}

.step-progress .progress-text {
    font-size: 0.9rem;
    color: #5F6368;
}

.step-progress .progress-percentage {
    font-size: 0.9rem;
    color: #5F6368;
}

.step-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
}

.step-progress .progress-fill {
    height: 100%;
    background: #F97316;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Final Quote Page Styles */
.final-quote-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.final-quote-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fef7f0 0%, #fdecd8 100%);
    border-radius: 12px;
}

.final-quote-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.final-quote-header p {
    font-size: 1.2rem;
    color: #64748b;
    margin: 0;
}

.final-quote-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.final-quote-details {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.final-quote-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.final-options-list {
    margin-bottom: 30px;
}

.final-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.final-option-item:last-child {
    border-bottom: none;
}

.final-option-label {
    font-weight: 500;
    color: #1e293b;
}

.final-option-price {
    font-weight: 600;
    color: #f2751f;
}

.final-quote-total {
    background: linear-gradient(135deg, #fef7f0 0%, #fdecd8 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.total-amount {
    margin-bottom: 10px;
}

.total-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

.total-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f2751f;
    margin-left: 10px;
}

.total-note {
    font-size: 0.9rem;
    color: #64748b;
}

.final-quote-actions {
    padding: 30px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-whatsapp-large, .btn-primary-large {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp-large {
    background: #25d366;
    color: white;
}

.btn-whatsapp-large:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-primary-large {
    background: #f2751f;
    color: white;
}

.btn-primary-large:hover {
    background: #e35d14;
    transform: translateY(-2px);
}

.quote-benefits-final {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
}

.quote-benefits-final h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.quote-benefits-final ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quote-benefits-final li {
    padding: 8px 0;
    font-size: 1rem;
    color: #64748b;
}

/* Mobile styles for final quote page */
@media (max-width: 768px) {
    .final-quote-page {
        padding: 10px;
    }
    
    .final-quote-header h2 {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .final-quote-details,
    .final-quote-actions {
        padding: 20px;
    }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #f2751f 0%, #e35d14 100%);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    display: block;
}

/* Benefits */
.quote-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefit-item {
    font-size: 0.9rem;
    color: #64748b;
}

/* Responsive Design */
/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .option-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
    .pendle-quote-main {
        grid-template-columns: 1fr;
    }
    
    .quote-sidebar {
        position: static;
        order: -1;
    }
    
    .option-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .installation-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .summary-actions {
        flex-direction: column;
    }
    

}

@media (max-width: 480px) {
    .pendle-quote-container {
        padding: 10px;
    }
    

    
    .form-step {
        padding: 20px;
    }
    
    .form-navigation {
        justify-content: flex-end;
        gap: 10px;
    }
}

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

.form-step {
    animation: fadeIn 0.3s ease;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success States */
.success {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

/* Error States */
.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

/* Path-specific elements */
.stove-path, .freestanding-path {
    display: none;
}

.stove-path.show, .freestanding-path.show {
    display: flex;
}
