/* ========================================
   Pricing / Estimator Page Styles
   Page-specific styling only - shared header/hero in pages-shared.css
   ======================================== */

/* Pricing hero extends base .page-hero from pages-shared.css */

/* Estimator Layout */
.estimator {
    padding: var(--space-2xl) 0;
}

.estimator__layout {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .estimator__layout {
        grid-template-columns: 1fr 340px;
        gap: var(--space-2xl);
        align-items: start;
    }
}

@media (min-width: 1280px) {
    .estimator__layout {
        grid-template-columns: 1fr 380px;
    }
}

/* Canvas Area */
.estimator__canvas-area {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.estimator__canvas {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-grey-200);
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: crosshair;
    min-height: 400px;
}

@media (min-width: 1024px) {
    .estimator__canvas {
        aspect-ratio: 4/3;
        min-height: 500px;
    }
}

@media (min-width: 1280px) {
    .estimator__canvas {
        min-height: 550px;
    }
}

/* Grid Background - architectural style */
.canvas__grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(100,116,139,0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100,116,139,0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

.canvas__grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(100,116,139,0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100,116,139,0.15) 1px, transparent 1px);
    background-size: 100px 100px;
}

/* The Floor Plan Room */
.canvas__room {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 150px;
    transition: width 0.1s ease, height 0.1s ease;
}

/* Floor - the main area */
.room__floor {
    position: absolute;
    inset: 8px;
    background: linear-gradient(135deg, #fef9f3 0%, #faf5ef 100%);
    border-radius: 2px;
    overflow: hidden;
}

/* Walls - thick borders */
.room__wall {
    position: absolute;
    background: var(--color-charcoal);
}

.room__wall--top {
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
}

.room__wall--bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
}

.room__wall--left {
    top: 0;
    left: 0;
    bottom: 0;
    width: 8px;
}

.room__wall--right {
    top: 0;
    right: 0;
    bottom: 0;
    width: 8px;
}

/* Door */
.room__door {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 8px;
    background: var(--color-green);
}

.room__door-swing {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 45px;
    height: 45px;
    border: 2px dashed rgba(104, 211, 145, 0.5);
    border-radius: 0 0 0 100%;
    border-top: none;
    border-right: none;
}

/* Windows */
.room__window {
    position: absolute;
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 100%);
    border: 2px solid #64748b;
}

.room__window--1 {
    top: 0;
    left: 25%;
    width: 40px;
    height: 8px;
}

/* Windows container */
.room__windows {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    z-index: 5;
}

/* Furniture - now dynamically generated */
.furniture {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    pointer-events: auto;
    touch-action: none;
}

.furniture svg {
    width: 100%;
    height: auto;
}

.furniture span {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    color: #94a3b8;
    white-space: nowrap;
}

.furniture:hover {
    transform: scale(1.05);
    z-index: 50;
}

.furniture.dragging {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 100;
    opacity: 0.9;
}

/* Drag hint */
.canvas__drag-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    pointer-events: none;
}

.canvas__drag-hint svg {
    opacity: 0.6;
}

/* Dimension Labels */
.room__dimension {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-charcoal);
    background: var(--color-white);
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    z-index: 10;
}

.room__dimension--width {
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
}

.room__dimension--width::before,
.room__dimension--width::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    background: var(--color-charcoal);
    width: 25px;
}

.room__dimension--width::before {
    left: -30px;
}

.room__dimension--width::after {
    right: -30px;
}

.room__dimension--depth {
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.room__dimension--depth::before,
.room__dimension--depth::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    background: var(--color-charcoal);
    height: 20px;
}

.room__dimension--depth::before {
    top: -25px;
}

.room__dimension--depth::after {
    bottom: -25px;
}

/* Resize Handles */
.room__handle {
    position: absolute;
    width: 32px;
    height: 32px;
    background: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(104, 211, 145, 0.3);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.room__handle:hover {
    transform: scale(1.2);
    background: var(--color-green-dark);
    box-shadow: var(--shadow-lg), 0 0 0 5px rgba(104, 211, 145, 0.4);
}

.room__handle:active {
    transform: scale(1.1);
}

.room__handle svg {
    width: 14px;
    height: 14px;
    color: var(--color-white);
}

.room__handle--right {
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.room__handle--right:hover {
    transform: translateY(-50%) scale(1.2);
}

.room__handle--bottom {
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
}

.room__handle--bottom:hover {
    transform: translateX(-50%) scale(1.2);
}

.room__handle--corner {
    right: -16px;
    bottom: -16px;
    cursor: nwse-resize;
    background: var(--color-orange);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(237, 137, 54, 0.3);
}

.room__handle--corner:hover {
    background: #dd7726;
    box-shadow: var(--shadow-lg), 0 0 0 5px rgba(237, 137, 54, 0.4);
    transform: scale(1.2);
}

/* Area Display */
.canvas__area-display {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: baseline;
    gap: 4px;
    box-shadow: var(--shadow-lg);
}

.area-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
}

.area-unit {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Size Hint */
.canvas__size-hint {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-slate);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.canvas__size-hint::before {
    content: '💡';
    margin-right: 6px;
}

/* Sliders */
.estimator__sliders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-slate);
}

.slider-group label strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-charcoal);
}

.slider-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--color-grey-200);
    border-radius: 4px;
    outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--color-green);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--color-green);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

/* Options Panel */
.options-panel {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-grey-200);
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
}

@media (min-width: 1024px) {
    .options-panel {
        padding: var(--space-lg) var(--space-md);
    }
}

.options-panel__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.options-panel__group {
    margin-bottom: var(--space-lg);
}

.options-panel__group h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-slate);
    margin-bottom: var(--space-sm);
}

/* Upgrade Options */
.upgrade-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: 6px;
    background: var(--color-grey-100);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.upgrade-option:hover {
    background: var(--color-grey-200);
}

.upgrade-option:has(input:checked) {
    background: rgba(104, 211, 145, 0.1);
    border-color: var(--color-green);
}

.upgrade-option input {
    display: none;
}

.upgrade-option__check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-grey-300);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    background: var(--color-white);
}

.upgrade-option__check svg {
    width: 12px;
    height: 12px;
    color: var(--color-white);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.upgrade-option:has(input:checked) .upgrade-option__check {
    background: var(--color-green);
    border-color: var(--color-green);
}

.upgrade-option:has(input:checked) .upgrade-option__check svg {
    opacity: 1;
}

.upgrade-option__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.upgrade-option__content strong {
    font-size: 0.85rem;
    color: var(--color-charcoal);
}

.upgrade-option__content span {
    font-size: 0.7rem;
    color: var(--color-slate);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upgrade-option__price {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-green-dark);
    white-space: nowrap;
}

/* Estimate Display */
.estimate-display {
    background: linear-gradient(135deg, var(--color-charcoal) 0%, #2d3748 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.estimate-display__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
    font-size: 0.75rem;
    opacity: 0.8;
}

.estimate-display__tier {
    background: rgba(255,255,255,0.15);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}

.estimate-display__price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex-wrap: wrap;
}

.estimate-display__currency {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

.estimate-display__low,
.estimate-display__high {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.estimate-display__separator {
    font-size: 1.2rem;
    opacity: 0.5;
    margin: 0 2px;
}

.estimate-display__includes {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: var(--space-xs);
    line-height: 1.3;
}

/* CTA Button */
.btn--full {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.options-panel__note {
    font-size: 0.75rem;
    color: var(--color-slate);
    text-align: center;
    margin-top: var(--space-md);
}

/* Included Section */
.included__grid {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

@media (min-width: 640px) {
    .included__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .included__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.included__item {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.included__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.included__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.included__item h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-xs);
}

.included__item p {
    font-size: 0.85rem;
    color: var(--color-slate);
    line-height: 1.5;
}

/* Benefits Section - Brick & Mortar */
.benefits {
    background: linear-gradient(135deg, #fef9f3 0%, #fefbf7 100%);
}

.benefits__grid {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

@media (min-width: 640px) {
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefits__item {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefits__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.benefits__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-terracotta) 0%, #c45a3d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.benefits__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.benefits__item h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

.benefits__item p {
    font-size: 0.9rem;
    color: var(--color-slate);
    line-height: 1.6;
}

/* FAQ on Pricing Page */
.faq__grid {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

@media (min-width: 768px) {
    .faq__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq__item {
    padding: var(--space-lg);
    background: var(--color-grey-100);
    border-radius: var(--radius-lg);
}

.faq__item h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

.faq__item p {
    font-size: 0.9rem;
    color: var(--color-slate);
    line-height: 1.6;
}

.faq__item a {
    color: var(--color-green-dark);
    font-weight: 600;
}

.faq__item a:hover {
    text-decoration: underline;
}

/* CTA Section styles now in pages-shared.css */

/* Responsive Adjustments */
@media (max-width: 1023px) {
    .options-panel {
        position: static;
    }
    
    .room__dimension--depth {
        right: -35px;
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .room__dimension--width {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

@media (max-width: 640px) {
    .estimator__canvas {
        aspect-ratio: 1/1;
    }
    
    .canvas__room {
        width: 150px;
        height: 112px;
    }
    
    .room__handle {
        width: 30px;
        height: 30px;
    }
    
    .room__handle svg {
        width: 12px;
        height: 12px;
    }
    
    .estimate-display__low,
    .estimate-display__high {
        font-size: 1.4rem;
    }
}

/* ========================================
   MOBILE OPTIMIZATION - iPhone & Small Screens
   ======================================== */

/* Tablet Portrait and below */
@media (max-width: 768px) {
    .page-hero {
        padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-lg);
    }
    
    .page-hero__tag {
        font-size: 0.65rem;
        padding: 5px 12px;
        margin-bottom: var(--space-sm);
    }
    
    .page-hero__title {
        font-size: 1.75rem;
    }
    
    .page-hero__description {
        font-size: 0.95rem;
    }
    
    .estimator__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .estimator__sliders {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Make sliders touch-friendly */
    .slider-group input[type="range"] {
        height: 12px;
    }
    
    .slider-group input[type="range"]::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
    }
    
    .slider-group input[type="range"]::-moz-range-thumb {
        width: 32px;
        height: 32px;
    }
    
    /* Larger touch targets for handles */
    .room__handle {
        width: 40px;
        height: 40px;
    }
    
    .room__handle--right {
        right: -20px;
    }
    
    .room__handle--bottom {
        bottom: -20px;
    }
    
    .room__handle--corner {
        right: -20px;
        bottom: -20px;
    }
    
    .room__handle svg {
        width: 16px;
        height: 16px;
    }
    
    /* Options panel full width */
    .options-panel {
        border-radius: var(--radius-lg);
        padding: var(--space-md);
    }
    
    /* Larger upgrade option touch targets */
    .upgrade-option {
        padding: var(--space-md);
        gap: var(--space-md);
    }
    
    .upgrade-option__check {
        width: 24px;
        height: 24px;
    }
    
    .upgrade-option__check svg {
        width: 14px;
        height: 14px;
    }
    
    .upgrade-option__content strong {
        font-size: 0.9rem;
    }
    
    .upgrade-option__content span {
        font-size: 0.75rem;
    }
    
    .upgrade-option__price {
        font-size: 0.85rem;
    }
    
    /* Area display repositioning */
    .canvas__area-display {
        top: var(--space-md);
        right: var(--space-md);
        padding: var(--space-xs) var(--space-md);
    }
    
    .area-number {
        font-size: 1.5rem;
    }
    
    /* Size hint */
    .canvas__size-hint {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.75rem;
    }
    
    /* Furniture drag hint */
    .room__drag-hint {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Small phones (iPhone SE, etc.) */
@media (max-width: 480px) {
    .page-hero {
        padding: calc(var(--header-height) + var(--space-md)) 0 var(--space-md);
    }
    
    .page-hero__tag {
        font-size: 0.6rem;
        padding: 4px 10px;
        letter-spacing: 1px;
    }
    
    .page-hero__title {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .page-hero__description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Canvas adjustments for small screens */
    .estimator__canvas {
        min-height: 320px;
        aspect-ratio: 1/1;
        border-radius: var(--radius-lg);
        margin: 0 calc(var(--space-sm) * -1);
        width: calc(100% + var(--space-sm) * 2);
    }
    
    .canvas__room {
        width: 120px;
        height: 90px;
    }
    
    /* Room floor - smaller on mobile */
    .room__floor {
        min-width: 80px;
        min-height: 60px;
    }
    
    /* Dimensions */
    .room__dimension--width {
        font-size: 0.7rem;
        padding: 2px 6px;
        bottom: -28px;
    }
    
    .room__dimension--depth {
        font-size: 0.7rem;
        padding: 2px 6px;
        right: -28px;
    }
    
    /* Handles - even larger for touch */
    .room__handle {
        width: 44px;
        height: 44px;
    }
    
    .room__handle--right {
        right: -22px;
    }
    
    .room__handle--bottom {
        bottom: -22px;
    }
    
    .room__handle--corner {
        right: -22px;
        bottom: -22px;
    }
    
    /* Sliders */
    .slider-group label {
        font-size: 0.85rem;
    }
    
    .slider-group label strong {
        font-size: 1rem;
    }
    
    .slider-group input[type="range"]::-webkit-slider-thumb {
        width: 36px;
        height: 36px;
    }
    
    .slider-group input[type="range"]::-moz-range-thumb {
        width: 36px;
        height: 36px;
    }
    
    /* Options panel compact */
    .options-panel {
        padding: var(--space-sm);
    }
    
    .options-panel__title {
        font-size: 1rem;
        margin-bottom: var(--space-sm);
    }
    
    .options-panel__group {
        margin-bottom: var(--space-md);
    }
    
    .options-panel__group h4 {
        font-size: 0.7rem;
    }
    
    /* Upgrade options stacked better */
    .upgrade-option {
        padding: var(--space-sm) var(--space-md);
        flex-wrap: wrap;
    }
    
    .upgrade-option__content {
        flex: 1 1 60%;
    }
    
    .upgrade-option__price {
        flex: 0 0 auto;
    }
    
    /* Estimate display */
    .estimate-display {
        padding: var(--space-sm);
    }
    
    .estimate-display__low,
    .estimate-display__high {
        font-size: 1.25rem;
    }
    
    .estimate-display__currency {
        font-size: 0.9rem;
    }
    
    .estimate-display__separator {
        font-size: 1rem;
    }
    
    .estimate-display__includes {
        font-size: 0.65rem;
    }
    
    /* CTA button */
    .btn--full {
        padding: var(--space-md);
        font-size: 0.9rem;
    }
    
    .options-panel__note {
        font-size: 0.7rem;
    }
    
    /* Canvas overlays */
    .canvas__area-display {
        top: var(--space-sm);
        right: var(--space-sm);
        padding: 6px 12px;
    }
    
    .area-number {
        font-size: 1.25rem;
    }
    
    .area-unit {
        font-size: 0.75rem;
    }
    
    .canvas__size-hint {
        bottom: var(--space-sm);
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    /* Included section */
    .included__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .included__item {
        padding: var(--space-md);
    }
    
    .included__icon {
        width: 40px;
        height: 40px;
    }
    
    .included__icon svg {
        width: 20px;
        height: 20px;
    }
    
    .included__item h3 {
        font-size: 0.9rem;
    }
    
    .included__item p {
        font-size: 0.8rem;
    }
    
    /* FAQ section */
    .faq__grid {
        grid-template-columns: 1fr;
    }
    
    .faq__item {
        padding: var(--space-md);
    }
    
    .faq__item h3 {
        font-size: 0.9rem;
    }
    
    .faq__item p {
        font-size: 0.85rem;
    }
}

/* Furniture items mobile adjustments */
@media (max-width: 768px) {
    .furniture-item {
        touch-action: none;
    }
    
    /* Windows smaller on mobile */
    .room__window {
        min-width: 25px;
    }
}

/* Touch-specific improvements */
@media (pointer: coarse) {
    /* Larger touch targets for touch devices */
    .room__handle {
        width: 48px;
        height: 48px;
    }
    
    .room__handle svg {
        width: 18px;
        height: 18px;
    }
    
    .room__handle--right {
        right: -24px;
    }
    
    .room__handle--bottom {
        bottom: -24px;
    }
    
    .room__handle--corner {
        right: -24px;
        bottom: -24px;
    }
    
    .slider-group input[type="range"]::-webkit-slider-thumb {
        width: 40px;
        height: 40px;
    }
    
    .slider-group input[type="range"]::-moz-range-thumb {
        width: 40px;
        height: 40px;
    }
    
    /* Furniture easier to grab */
    .furniture-item {
        min-width: 40px;
        min-height: 40px;
    }
    
    /* Upgrade options more tappable */
    .upgrade-option {
        min-height: 56px;
    }
}

/* Extra small phones (iPhone SE at 375px and smaller) */
@media (max-width: 375px) {
    .page-hero {
        padding: calc(var(--header-height) + var(--space-sm)) 0 var(--space-sm);
    }
    
    .page-hero__tag {
        font-size: 0.55rem;
        padding: 3px 8px;
        letter-spacing: 0.5px;
    }
    
    .page-hero__title {
        font-size: 1.35rem;
    }
    
    .page-hero__description {
        font-size: 0.8rem;
    }
    
    /* Container padding adjustments */
    .container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
    
    /* Canvas takes more width */
    .estimator__canvas {
        min-height: 280px;
        margin: 0 calc(var(--space-md) * -1);
        width: calc(100% + var(--space-md) * 2);
        border-radius: 0;
    }
    
    .canvas__room {
        width: 100px;
        height: 75px;
    }
    
    /* Smaller area display */
    .canvas__area-display {
        top: var(--space-xs);
        right: var(--space-xs);
        padding: 4px 8px;
    }
    
    .area-number {
        font-size: 1rem;
    }
    
    .area-unit {
        font-size: 0.65rem;
    }
    
    /* Size hint hidden on very small screens */
    .canvas__size-hint {
        display: none;
    }
    
    /* Handles smaller but still touchable */
    .room__handle {
        width: 36px;
        height: 36px;
    }
    
    .room__handle--right {
        right: -18px;
    }
    
    .room__handle--bottom {
        bottom: -18px;
    }
    
    .room__handle--corner {
        right: -18px;
        bottom: -18px;
    }
    
    .room__handle svg {
        width: 14px;
        height: 14px;
    }
    
    /* Dimensions smaller */
    .room__dimension--width,
    .room__dimension--depth {
        font-size: 0.6rem;
        padding: 2px 5px;
    }
    
    /* Sliders more compact */
    .slider-group {
        gap: var(--space-xs);
    }
    
    .slider-group label {
        font-size: 0.8rem;
    }
    
    .slider-group label strong {
        font-size: 0.9rem;
    }
    
    /* Options panel very compact */
    .options-panel {
        padding: var(--space-xs);
        border-radius: var(--radius-md);
    }
    
    .options-panel__title {
        font-size: 0.9rem;
    }
    
    .options-panel__group h4 {
        font-size: 0.65rem;
        margin-bottom: var(--space-xs);
    }
    
    /* Smaller upgrade options */
    .upgrade-option {
        padding: var(--space-xs) var(--space-sm);
        margin-bottom: 4px;
    }
    
    .upgrade-option__check {
        width: 20px;
        height: 20px;
    }
    
    .upgrade-option__content strong {
        font-size: 0.8rem;
    }
    
    .upgrade-option__content span {
        font-size: 0.65rem;
    }
    
    .upgrade-option__price {
        font-size: 0.75rem;
    }
    
    /* Estimate display compact */
    .estimate-display {
        padding: var(--space-xs);
    }
    
    .estimate-display__header {
        font-size: 0.65rem;
    }
    
    .estimate-display__tier {
        font-size: 0.55rem;
        padding: 2px 6px;
    }
    
    .estimate-display__low,
    .estimate-display__high {
        font-size: 1.1rem;
    }
    
    .estimate-display__currency {
        font-size: 0.8rem;
    }
    
    .estimate-display__includes {
        font-size: 0.6rem;
    }
    
    /* CTA button */
    .btn--full {
        padding: var(--space-sm);
        font-size: 0.85rem;
    }
    
    .options-panel__note {
        font-size: 0.65rem;
        margin-top: var(--space-sm);
    }
    
    /* Included items */
    .included__item {
        padding: var(--space-sm);
    }
    
    .included__icon {
        width: 36px;
        height: 36px;
    }
    
    .included__icon svg {
        width: 18px;
        height: 18px;
    }
    
    .included__item h3 {
        font-size: 0.85rem;
    }
    
    .included__item p {
        font-size: 0.75rem;
    }
    
    /* FAQ items */
    .faq__item {
        padding: var(--space-sm);
    }
    
    .faq__item h3 {
        font-size: 0.85rem;
    }
    
    .faq__item p {
        font-size: 0.8rem;
    }
}
