/* Everyday Estate™ — Field Sales Estimator & CPQ Styling */

.estimator-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px;
    padding-bottom: 120px; /* Space for sticky pricing dock */
}

/* Estimator Navigation Bar */
.estimator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.estimator-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.estimator-logo h1 {
    font-size: 1.35rem;
    font-weight: 700;
}

/* Step Wizard Indicator */
.step-wizard {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.step-item.active {
    background: rgba(197, 160, 89, 0.12);
    border-color: var(--gold-primary);
    color: var(--text-primary);
}

.step-item.completed {
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--emerald-success);
}

.step-number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.step-item.active .step-number {
    background: var(--gold-primary);
    color: #07090e;
    font-weight: 700;
}

/* Room Selector Pills */
.room-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.room-pill {
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.room-pill.active {
    background: var(--gold-primary);
    color: #07090e;
    border-color: var(--gold-primary);
}

/* Product Selection Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    position: relative;
}

.product-card.selected {
    border-color: var(--border-active);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.15);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.product-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-primary);
}

.product-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.35;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

.product-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 12px 0 16px;
    flex-grow: 1;
}

.product-meta-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.meta-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.meta-badge.lead-time {
    color: var(--blue-accent);
    border-color: rgba(56, 189, 248, 0.3);
}

.meta-badge.mrr-tag {
    color: var(--text-gold);
    border-color: rgba(197, 160, 89, 0.3);
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.qty-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background: var(--gold-primary);
    color: #07090e;
}

.qty-value {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

/* Sticky Live Tally Dock */
.pricing-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 22, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
}

.dock-metrics {
    display: flex;
    align-items: center;
    gap: 36px;
}

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

.metric-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-value.highlight-gold {
    color: var(--text-gold);
}

.dock-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Supply-Aware Calendar Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.calendar-day {
    padding: 16px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.calendar-day.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

.calendar-day.available {
    border-color: rgba(16, 185, 129, 0.4);
}

.calendar-day.available:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.calendar-day.selected {
    background: var(--gold-primary);
    color: #07090e;
    font-weight: 700;
    border-color: var(--gold-primary);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.time-slot-card {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.time-slot-card.selected {
    background: rgba(197, 160, 89, 0.15);
    border-color: var(--gold-primary);
}

/* E-Sign Pad Canvas */
.signature-box {
    border: 2px dashed rgba(197, 160, 89, 0.4);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    height: 180px;
    margin: 16px 0;
}

.signature-box canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.sig-clear-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
}
