/* Estimate Page Specific Styles */

body {
    background-color: var(--color-primary);
    color: var(--color-ivory);
}

/* Hide Profit Feature */
body.profit-hidden .profit-element {
    display: none !important;
}

main {
    padding-top: 180px;
    padding-bottom: 60px;
    min-height: 80vh;
}

h1,
h2,
h3,
h4,
p {
    color: var(--color-ivory);
}

.estimate-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 0;
}

.estimate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .estimate-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 32px;
        align-items: start;
    }

    .input-group {
        margin-bottom: 8px;
    }
}

/* Card Styles */
.estimate-card {
    background: #fdfaf1;
    /* Brand Ivory */
    border-radius: var(--radius-main);
    padding: 32px;
    margin-bottom: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: var(--color-primary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* .estimate-card.input-card padding/gap handled by standard estimate-card class */

/* Trust banner at the top of the input card */
.input-card-trust-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fdfaf1;
    border-radius: var(--radius-main);
    text-decoration: none;
    transition: background 0.2s;
    margin: 0 0 16px 0;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.input-card-trust-banner:hover {
    background: rgba(3, 64, 38, 0.1);
}

.input-card-trust-banner .google-review-stars {
    color: #F9AB00;
    font-size: 14px;
    letter-spacing: 1px;
}

.input-card-trust-banner .google-review-score {
    font-weight: 700;
    color: #000;
}

.input-card-trust-banner .google-review-trust {
    font-weight: 600;
    font-size: 14px;
}

.estimate-card h1,
.estimate-card h2,
.estimate-card h3,
.estimate-card p,
.estimate-card .input-label {
    color: var(--color-primary);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Bento Grid for Construction Process */
.construction-section-wrapper {
    padding-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.construction-section-wrapper h2 {
    text-align: center;
    font-size: 32px;
    padding-bottom: 40px;
    margin-bottom: 0;
    color: var(--color-primary);
}

.construction-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .construction-bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bento-item-1 {
        grid-column: span 2;
    }

    .bento-item-2 {
        grid-column: span 1;
    }

    .bento-item-3 {
        grid-column: span 1;
    }

    .bento-item-4 {
        grid-column: span 1;
    }

    .bento-item-5 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-item-6 {
        grid-column: span 1;
    }

    .bento-item-7 {
        grid-column: span 1;
    }

    .bento-item-8 {
        grid-column: span 1;
    }

    .bento-item-9 {
        grid-column: span 2;
    }

    .bento-item-10 {
        grid-column: span 2;
    }
}

.bento-card {
    background: #fdfaf1;
    /* Brand Ivory */
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(13, 19, 33, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px rgba(13, 19, 33, 0.08);
}

.bento-card.highlight {
    background: var(--color-primary);
    color: var(--color-ivory);
    border: none;
    box-shadow: 0 10px 25px rgba(27, 67, 50, 0.2);
}

.bento-card.highlight .step-number {
    background: var(--color-ivory);
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bento-card.highlight .step-content strong {
    color: var(--color-ivory);
    border-bottom: 2px solid rgba(253, 250, 241, 0.2);
    padding-bottom: 8px;
    display: inline-block;
}

.bento-card.highlight .step-content p {
    color: rgba(253, 250, 241, 0.95);
    font-size: 16px;
}

.bento-card .step-number {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: var(--color-ivory);
    border-radius: 10px;
    /* Modern squircle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
    z-index: 5;
    position: relative;
}

@media (min-width: 768px) {

    /* Add subtle border for adjacent items in the grid */
    .bento-card {
        border-left: 1px solid rgba(13, 19, 33, 0.08);
    }
}

.bento-card:hover .step-number {
    transform: scale(1.1);
}

.bento-card .step-content strong {
    display: block;
    font-size: 20px;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.bento-card .step-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #2a2a2a;
    margin: 0;
}


/* Feedback Section */
.estimate-feedback-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(13, 19, 33, 0.08);
    animation: fadeIn 0.5s ease-out;
}

.feedback-question {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}

.feedback-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-feedback {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fdfaf1;
    border: 1px solid rgba(13, 19, 33, 0.1);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #444;
}

.btn-feedback:hover {
    background: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-feedback.active-up {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.btn-feedback.active-down {
    background: #ffebee;
    border-color: #ef5350;
    color: #c62828;
}

.btn-feedback span {
    font-size: 1.2rem;
}

.feedback-followup {
    margin-top: 1.2rem;
    padding: 1rem;
    background: rgba(13, 19, 33, 0.02);
    border-radius: 12px;
    display: none;
}

.followup-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-chip {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid rgba(13, 19, 33, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-chip.active {
    background: var(--color-primary);
    color: var(--color-ivory);
    border-color: var(--color-primary);
}

.feedback-thanks {
    display: none;
    color: #2e7d32;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
}


.input-group {
    margin-bottom: 8px;
    position: relative;
}

#calculateBtn {
    width: 100%;
}

@media (min-width: 768px) {
    .btn-cta-bottom {
        width: fit-content;
        min-width: 280px;
        margin: 0 auto;
        padding-left: 48px;
        padding-right: 48px;
    }
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.help-link {
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.help-link:hover {
    opacity: 1;
}

/* Tooltip - Expanding Style */
.help-tooltip {
    display: none;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(13, 19, 33, 0.1);
    padding: 16px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-primary);
    margin-top: 8px;
    margin-bottom: 16px;
    /* Static position to push content down */
    position: static;
    box-shadow: none;
    width: 100%;
    z-index: auto;
}

.help-tooltip.active {
    display: block;
}

.help-tooltip p {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 700;
}

.help-tooltip ul {
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 2px solid rgba(13, 19, 33, 0.1);
    background: #f8f9fa;
    color: var(--color-primary);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%230D1321' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 40px;
}

.material-info-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    color: var(--color-primary);
    opacity: 0.8;
    transition: opacity 0.2s;
    margin-top: 0;
    margin-bottom: 0px;
    padding-bottom: 0px;
    min-height: auto;
    text-transform: none;
    letter-spacing: 0px;
}

.input-label .material-info-link {
    margin-left: 8px;
}

.material-info-link:hover {
    text-decoration: underline;
    opacity: 1;
    /* Changed from 0.8 to 1 to match .help-link:hover behavior */
}

.paver-name-highlight {
    font-weight: 700;
    font-style: italic;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid rgba(13, 19, 33, 0.1);
    border-radius: 8px;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.nav-arrow:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.nav-arrow:active {
    transform: scale(0.95);
}

/* Preview Image */
.preview-container {
    margin-top: 0;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    height: auto;
    aspect-ratio: 4/3;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Result Section */
.result-section {
    text-align: center;
    margin-top: 0;
    padding-top: 24px;
    border-top: 2px solid rgba(13, 19, 33, 0.1);
}

.result-row {
    margin-bottom: 24px;
}

.total-row {
    margin-bottom: 32px;
}

.result-label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 8px;
    font-weight: 700;
}

.estimate-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-primary);
}

.breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1px solid rgba(13, 19, 33, 0.05);
    padding-top: 24px;
}

.result-label-small {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 4px;
    font-weight: 600;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    /* Default to column to ensure label is above value */
    justify-content: center;
}

.breakdown-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

/* Radio Group Style */
.radio-group {
    display: flex;
    gap: 24px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: var(--color-primary);
    font-size: 15px;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}

input[type="radio"]:checked+.radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    position: absolute;
}

input[type="radio"] {
    display: none;
}

@media (max-width: 768px) {
    /* Standardizing behavior with global style.css */
    /* top-bar is now visible */

    header {
        position: absolute;
        /* Not sticky anymore */
        top: 40px;
        /* Space for the 40px top-bar */
    }

    main {
        padding-top: 150px;
        /* Space for 40px top-bar + 80px header + buffer */
    }
}

/* --- Refactored Global Styles --- */

/* --- Refactored Global Styles --- */

.page-title {
    text-align: center;
    color: var(--color-ivory);
}

.estimate-card h2 {
    margin-bottom: 0;
    font-size: 20px;
}

.input-label-vehicle {
    display: block;
    margin-bottom: 0;
}

.help-link-estimate {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    min-height: auto;
    margin-top: 6px;
    margin-bottom: 8px;
    text-decoration: underline;
    color: var(--color-primary);
    opacity: 0.8;
}

@media (min-width: 768px) {
    .help-link-estimate {
        /* No longer needs left margin since it's on a new line */
        margin-left: 0;
    }
}

.paver-select-wrapper {
    /* Previously flex container for arrows+select, now just wraps select */
    width: 100%;
}

#paverSelect {
    width: 100%;
}

.preview-container {
    margin-top: 8px;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    height: auto;
    aspect-ratio: 4/3;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    /* Enable absolute positioning for arrows */
}

.preview-container[style*="display: none"],
.preview-container.hidden {
    margin-top: 0;
}

.preview-container .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    backdrop-filter: blur(4px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preview-container .nav-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.preview-container #prevPaverBtn {
    left: 12px;
}

.preview-container #nextPaverBtn {
    right: 12px;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Removes bottom space */
}

/* Button Styles - High Emphasis */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-ivory);
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #02301c;
    /* Slightly darker shade for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#quoteForm .btn-primary {
    margin-top: 1.5rem;
    padding: 20px 40px;
}

/* Disclaimer Styles */
.disclaimer-container {
    margin-top: 40px;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.disclaimer-container p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-ivory);
    opacity: 0.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Detailed Breakdown Styles */
.detailed-breakdown-list {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.detailed-breakdown-list h3 {
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 12px;
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detailed-breakdown-list h3:first-child {
    margin-top: 0;
}

.breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breakdown-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.breakdown-list li:last-child {
    border-bottom: none;
}

.detail-label {
    color: #555;
    font-weight: 500;
    text-align: left;
    flex: 1;
    /* Allow label to take available space */
    padding-right: 12px;
    /* Add space between label and value */
}

/* Fix for header elements appearing on desktop */
@media (min-width: 768px) {

    .mobile-menu-logo,
    .close-menu-btn,
    .mobile-menu-btn {
        display: none;
    }
}

/* --- Educational & Social Proof Section --- */
.estimate-info-section {
    padding: 60px 0;
    background-color: #fdfaf1;
    /* Brand Ivory Background */
    color: #0D1321;
    /* High Contrast Dark Green */
}

.info-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.section-tagline {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0D1321;
    opacity: 0.7;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
    max-width: none;
    /* Override global p-tag limit from style.css */
}

.info-intro h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    color: #0D1321;
}

.info-intro h3 {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.6;
    color: #0D1321;
}

.calculation-intro-row {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.calc-step-intro {
    flex: 1;
}

/* Calculation Steps Grid */
.calculation-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-top: 40px;
}

/* Shared heading style for calc-step-intro and calc-step */
.calc-step-intro h4,
.calc-step h4 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Accent bar under headings */
.calc-step-intro .accent-bar,
.calc-step .accent-bar {
    width: 40px;
    height: 4px;
    background: var(--color-primary);
    margin-bottom: 20px;
}

/* Paragraphs on white/ivory backgrounds */
.estimate-info-section p,
.calc-step-intro p,
.calc-step p,
.case-study-text p {
    color: #000;
}

.calc-step-intro p,
.calc-step p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Info Footer */
.info-footer {
    margin-top: 80px;
}

.info-footer .cta-container {
    margin-top: 30px;
}

.calculation-illustration-container {
    width: 400px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #fff;
    border: 1px solid rgba(13, 19, 33, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.calculation-illustration-container img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Alternating Rows */
.educational-rows {
    margin: 0;
    padding-bottom: 30px;
}

.edu-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 0;
    padding-bottom: 30px;
}

.edu-row.reverse {
    flex-direction: row-reverse;
}

.edu-text,
.edu-image {
    flex: 1;
}

.edu-text h4 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #0D1321;
    position: relative;
    padding-bottom: 12px;
}

.edu-text h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #0D1321;
    border-radius: 2px;
}

.edu-row.reverse .edu-text h4 {
    text-align: left;
}

.edu-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.edu-image-container {
    flex: 0 0 400px;
    width: 400px;
    max-width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: #eee;
}

.edu-image-container:hover .placeholder-img {
    transform: scale(1.05);
}

.edu-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(13, 19, 33, 0.95), transparent);
    padding: 30px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #fdfaf1;
}

.edu-image-container:hover .edu-overlay {
    transform: translateY(0);
}

.edu-overlay h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fdfaf1;
}

.edu-overlay p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    color: #fdfaf1;
}

/* Features Table Styles Refined */
.features-comparison {
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    /* Center the tagline and any other text */
}

.table-responsive {
    overflow-x: auto;
    margin-top: 40px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.features-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: transparent;
    color: #0D1321;
    border: 2px solid #0D1321;
    min-width: 500px;
    /* Ensure table doesn't squish too much, forcing scroll */
}

.features-table th,
.features-table td {
    padding: 16px 20px;
    text-align: left;
    border: 1px solid rgba(13, 19, 33, 0.2);
    font-size: 14px;
}

.features-table th {
    background-color: #0D1321;
    color: #fdfaf1;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1.5px;
    border: 1px solid #0D1321;
}

.features-table td:first-child {
    font-weight: 700;
    background: rgba(13, 19, 33, 0.02);
}

.features-table tr:hover td {
    background: rgba(13, 19, 33, 0.04);
}

/* Case Study Section Overrides for Ivory Context */
.case-study-card {
    background: #fff;
    color: var(--color-primary);
    border-radius: var(--radius-main);
    padding: 30px;
    margin: 60px 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.case-study-header h2 {
    color: var(--color-primary);
    font-size: 28px;
    margin-bottom: 32px;
    text-align: center;
}

.case-study-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .case-study-body {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }
}

.case-study-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
}

.case-study-list {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.case-study-list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-weight: 500;
    color: var(--color-primary);
}

.case-study-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2d5a27;
    font-weight: 800;
}

.case-study-result {
    font-style: italic;
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin-top: 24px;
}

.case-study-review-mobile {
    display: none;
}

.case-study-review-desktop {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-study-review-desktop img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.price-box {
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-box.estimate {
    background: #f0f2f5;
    border: 1px dashed #ccc;
}

.price-box.actual {
    background: #e7f3ef;
    border: 2px solid #2d5a27;
}

.price-label {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0.8;
}

.price-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
}

.price-box.actual .price-amount {
    color: #2d5a27;
}

.info-footer {
    text-align: center;
    margin-top: 60px;
}

.final-tagline {
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    color: #0D1321;
    opacity: 0.9;
}

@media (max-width: 992px) {

    .edu-row,
    .edu-row.reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .edu-image-container {
        flex: 0 1 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .edu-text h4,
    .edu-row.reverse .edu-text h4,
    .edu-text p {
        text-align: center;
    }

    .edu-text h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .features-comparison {
        padding: 40px 20px;
    }

    .info-intro h2 {
        font-size: 28px;
    }

    .calculation-intro-row {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 40px;
    }

    .calculation-illustration-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .case-study-card {
        padding: 32px 24px;
    }

    .price-amount {
        font-size: 24px;
    }

    .estimate-info-section {
        padding: 60px 0;
    }

    /* Features Table Mobile Fixes */
    .features-comparison {
        padding: 40px 15px;
        margin: 0 0 60px 0;
    }

    .table-responsive {
        margin-top: 24px;
    }

    .features-table {
        min-width: 0;
        /* Remove 500px limit */
        width: 100%;
    }

    .features-table th,
    .features-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .features-table th {
        font-size: 14px;
        padding: 12px 8px;
    }

    .case-study-pricing {
        gap: 20px;
    }

    .case-study-review-mobile {
        display: block;
        margin-top: 0;
        /* Tighter gap since it's now in the grid */
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .case-study-review-desktop {
        display: none;
    }

    .case-study-review-mobile img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* Calculator Switcher Band */
.calculator-switcher-band {
    background-color: #fdfaf1;
    /* Brand Ivory */
    padding: 30px 20px;
    margin: 40px auto;
    text-align: center;
    border-radius: var(--radius-main);
    max-width: 1100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.switcher-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.calculator-switcher-band .switcher-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.switcher-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.switcher-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.switcher-btn:hover {
    background-color: var(--color-primary);
    color: #fdfaf1;
}

.switcher-btn.active {
    background-color: rgba(13, 19, 33, 0.1);
    cursor: default;
    pointer-events: none;
    border-color: rgba(13, 19, 33, 0.2);
    color: rgba(13, 19, 33, 0.4);
}

@media (min-width: 768px) {
    .switcher-content {
        flex-direction: row;
        gap: 30px;
    }
}

/* =========================================
   REVIEW CAROUSEL — ESTIMATE PAGE OVERRIDES
   ========================================= */
#patios-reviews-block,
#walls-reviews-block {
    margin-top: 40px;
    padding-top: 0;
}

@media (max-width: 767px) {

    #patios-reviews-block,
    #walls-reviews-block {
        margin-top: 24px;
    }
}

/* =========================================
   TRUSTED HOMEOWNERS BANNER
   ========================================= */
.estimate-trust-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.3s ease;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.estimate-trust-banner:hover {
    background: rgba(255, 255, 255, 0.1);
}

.estimate-trust-banner .google-review-logo {
    background: white;
    border-radius: 50%;
    padding: 2px;
}

.estimate-trust-banner .google-review-score {
    font-weight: 800;
    color: var(--color-ivory);
    font-size: 0.95rem;
}

.input-card-trust-banner.estimate-trust-banner .google-review-score {
    color: #000;
}

.estimate-trust-banner .google-review-stars {
    color: #FBBC04;
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 1px;
}

.estimate-trust-banner .google-review-trust {
    font-size: 0.85rem;
    color: var(--color-ivory);
    font-weight: 500;
}

.input-card-trust-banner.estimate-trust-banner .google-review-trust {
    color: #000;
}

.input-card-trust-banner.estimate-trust-banner {
    background: #fdfaf1;
    margin-bottom: 16px;
}

/* Material Info Link Styles */
.material-info-wrapper {
    margin-top: 8px;
    min-height: 24px;
}

.material-info-link {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.material-info-link:hover {
    opacity: 1;
    text-decoration: underline;
    transform: translateX(2px);
}

.paver-name-highlight {
    font-weight: 700;
    color: var(--color-primary);
}

/* Small Project Notice Styles */
.small-project-notice,
.lighting-credit-offer {
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 12px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.small-project-notice {
    background-color: #fff9db;
    border: 1px solid #ffd43b;
    color: #856404;
}

.lighting-credit-offer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.bonus-offer-inline {
    background-color: #e7f3ef;
    border: 1px solid #2d5a27;
    color: #1b4332;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 12px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bonus-toggle-group {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn-bonus-choice {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(45, 90, 39, 0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #2d5a27;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none; /* Ensure no underline */
}

.btn-bonus-choice:hover {
    background: #2d5a27;
    color: #fff;
    border-color: #2d5a27;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.15);
}

.btn-bonus-choice:active {
    transform: translateY(0);
}

.choice-icon {
    font-size: 16px;
}

.limit-notice {
    background-color: #fff5f5;
    border: 1px solid #ffc9c9;
    color: #c92a2a;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 12px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.limit-notice .notice-title {
    color: #c92a2a;
}

.notice-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.small-project-notice .notice-title {
    color: #856404;
}

.lighting-credit-offer .notice-title {
    color: #2d5a27;
}

.notice-icon {
    font-size: 18px;
}

.notice-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.lighting-credit-offer .notice-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    text-decoration: underline;
    color: #2d5a27;
}

.notice-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.small-project-notice p {
    margin: 0;
    font-size: 0.95rem;
    /* Slightly larger for better readability as a standalone paragraph */
    line-height: 1.6;
    color: #856404;
    font-weight: 400;
    text-align: left;
}

.small-project-notice a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    display: inline;
    line-height: inherit;
}

/* Mobile city name hiding */
@media (max-width: 999px) {
    #rotating-city,
    .rotating-city {
        display: none !important;
    }
}