/* ========================================
   WINDOW REPLACEMENT COST CALCULATOR
  ======================================== */

/* Premium Hero Section with Animated Effects */
.cost-guide-hero {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 8rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Grid Pattern Background */
.cost-guide-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(139, 154, 91, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 154, 91, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
    opacity: 0.5;
}

@keyframes gridScroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Gradient Orb Effects */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--green);
    top: -200px;
    left: -100px;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--green);
    bottom: -150px;
    right: -50px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 154, 91, 0.15);
    border: 1px solid rgba(139, 154, 91, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge-icon {
    width: 16px;
    height: 16px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.cost-guide-hero h1 {
    font-size: 3.75rem;
    line-height: 1.1;
    margin: 0 0 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-highlight {
    color: var(--green);
    -webkit-text-fill-color: var(--green);
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--green);
    transform: scaleX(0);
    animation: underlineGrow 1s ease-out 0.5s forwards;
}

@keyframes underlineGrow {
    to {
        transform: scaleX(1);
    }
}

.cost-guide-hero .subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--green);
    display: block;
    margin-bottom: 0.5rem;
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.5;
    z-index: 3;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.hero-scroll svg {
    width: 24px;
    height: 24px;
}

/* Intro Section */
.intro-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.intro-section h2 {
    font-size: 2rem;
    margin: 0 0 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
}

.intro-section p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #333;
    margin: 0 0 1.25rem;
}

/* Calculator Section */
.calculator-section {
    background: #f8f9f6;
    padding: 60px 20px;
}

.calc-container {
    max-width: 900px;
    margin: 0 auto;
}

.calc-header {
    text-align: center;
    margin-bottom: 40px;
}

.calc-header h2 {
    font-size: 2.5rem;
    margin: 0 0 0.75rem;
    color: #1a1a1a;
    font-weight: 700;
}

.calc-header p {
    font-size: 1.125rem;
    color: #666;
}

/* Step Cards */
.step-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green);
    margin-bottom: 16px;
}

/* Material Selection */
.material-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.material-card {
    background: #fafafa;
    border: 3px solid #e5e5e5;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.material-card:hover {
    border-color: var(--green);
    background: #f9faf7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 154, 91, 0.2);
}

.material-card.selected {
    border-color: var(--green);
    background: #f9faf7;
    box-shadow: 0 4px 16px rgba(139, 154, 91, 0.25);
}

.material-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.material-checkmark {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.material-card.selected .material-checkmark {
    background: var(--green);
    border-color: var(--green);
}

.material-checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.material-card.selected .material-checkmark::after {
    opacity: 1;
}

.material-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.material-subtitle {
    font-size: 0.9375rem;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 12px;
}

.material-description {
    font-size: 0.875rem;
    color: #666;
}

.material-note {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
}

.material-note a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.material-note a:hover {
    text-decoration: underline;
}

/* Quantity Controls */
.qty-container {
    text-align: center;
    padding: 20px 0;
}

.qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.qty-btn {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid #e5e5e5;
    background: white;
    font-size: 28px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    border-color: var(--green);
    background: #f9faf7;
    color: var(--green);
}

.qty-display {
    font-size: 4rem;
    font-weight: 800;
    color: #1a1a1a;
    min-width: 150px;
    text-align: center;
}

.qty-slider-container {
    max-width: 500px;
    margin: 0 auto 16px;
}

.qty-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e5e5;
    outline: none;
    -webkit-appearance: none;
    position: relative;
}

.qty-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 154, 91, 0.4);
    transition: transform 0.2s ease;
}

.qty-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.qty-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(139, 154, 91, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #999;
    padding: 0 4px;
}

.qty-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: #666;
    margin-top: 16px;
}

.qty-hint::before {
    content: '💡';
    font-size: 1.125rem;
}

/* Results Card */
.results-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.results-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}

.results-amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.results-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}

/* CTA Buttons - Scoped to calculator section only */
.calculator-section .cta-buttons,
.content-section .cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.calculator-section .btn,
.content-section .btn {
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.calculator-section .btn-primary,
.content-section .btn-primary {
    background: var(--green);
    color: white;
}

.calculator-section .btn-primary:hover,
.content-section .btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 154, 91, 0.3);
}

.calculator-section .btn-secondary,
.content-section .btn-secondary {
    background: white;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculator-section .btn-secondary:hover,
.content-section .btn-secondary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Content Section */
.content-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.content-section h2 {
    font-size: 2rem;
    margin: 0 0 1.25rem;
    color: #1a1a1a;
    font-weight: 700;
}

.content-section h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin: 0 0 1rem;
}

.content-section ul,
.content-section ol {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.comparison-table thead {
    background: #f8f9f6;
}

.comparison-table th {
    padding: 14px;
    text-align: left;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #e5e5e5;
    font-size: 0.9375rem;
}

.comparison-table td {
    padding: 14px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    font-size: 0.9375rem;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: #fafafa;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    margin: 60px 0;
}

.cta-box h2 {
    font-size: 2.25rem;
    margin: 0 0 1rem;
    color: white;
    font-weight: 700;
}

.cta-box p {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: white;
}

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

.cta-box .btn-white {
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    background: white;
    color: var(--green-dark);
}

.cta-box .btn-white:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-box .btn-outline {
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-box .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .cost-guide-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-stat {
        flex: 1;
        min-width: 0;
    }
    
    .hero-stat-value {
        font-size: 1.75rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
    
    .material-grid {
        grid-template-columns: 1fr;
    }
    
    .qty-display {
        font-size: 3rem;
    }
    
    .results-amount {
        font-size: 2.5rem;
    }
    
    .calculator-section .cta-buttons,
    .content-section .cta-buttons {
        flex-direction: column;
    }
    
    .calculator-section .btn,
    .content-section .btn,
    .cta-box .btn-white,
    .cta-box .btn-outline {
        width: 100%;
    }
    
    .step-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .cost-guide-hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.6875rem;
    }
}
