/* Project Estimate Page – Glasco Traders */

.estimate-page-hero-bg {
    background-image: url('../Images2/about-slides/image%20copy.png');
    opacity: 0.34;
}

.estimate-main-section {
    padding: 80px 0 100px;
    background: var(--bg-color);
}

.estimate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.estimate-panel {
    background: var(--white-color);
    border: 1px solid var(--divider-color);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 16px 48px rgba(24, 24, 24, 0.05);
}

.estimate-panel + .estimate-panel {
    margin-top: 20px;
}

.estimate-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.estimate-panel-head h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.estimate-panel-head p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(24, 24, 24, 0.58);
    margin: 0;
}

.estimate-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 14px;
    font-weight: 600;
}

.estimate-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.estimate-scope-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 20px 16px;
    border: 2px solid var(--divider-color);
    border-radius: 16px;
    background: var(--bg-color);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.estimate-scope-card:hover {
    border-color: rgba(237, 199, 1, 0.45);
    transform: translateY(-2px);
}

.estimate-scope-card.is-selected {
    border-color: var(--accent-color);
    background: rgba(237, 199, 1, 0.08);
    box-shadow: 0 10px 28px rgba(237, 199, 1, 0.12);
}

.estimate-scope-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.estimate-scope-card i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--white-color);
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 12px;
}

.estimate-scope-card strong {
    display: block;
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.estimate-scope-card span {
    display: block;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(24, 24, 24, 0.58);
}

.estimate-scope-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--divider-color);
    background: var(--white-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    transition: all 0.2s ease;
}

.estimate-scope-card.is-selected .estimate-scope-check {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--primary-color);
}

.estimate-sqft-control {
    display: grid;
    gap: 16px;
}

.estimate-sqft-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.estimate-sqft-input-row input[type="number"] {
    flex: 1;
    max-width: 180px;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.estimate-sqft-input-row span {
    font-size: 14px;
    color: rgba(24, 24, 24, 0.55);
}

.estimate-sqft-slider {
    width: 100%;
    accent-color: var(--accent-color);
}

.estimate-sqft-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.estimate-sqft-preset {
    padding: 8px 14px;
    border-radius: 100px;
    border: 1px solid var(--divider-color);
    background: var(--white-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.estimate-sqft-preset:hover,
.estimate-sqft-preset.is-active {
    border-color: var(--accent-color);
    background: rgba(237, 199, 1, 0.12);
}

.estimate-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.estimate-tier-card {
    position: relative;
    width: 100%;
    padding: 22px 18px;
    border: 2px solid var(--divider-color);
    border-radius: 18px;
    background: var(--white-color);
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
}

.estimate-tier-card:hover {
    border-color: rgba(237, 199, 1, 0.45);
}

.estimate-tier-card.is-selected {
    border-color: var(--primary-color);
    box-shadow: 0 14px 36px rgba(24, 24, 24, 0.1);
}

.estimate-tier-card.is-featured {
    border-color: rgba(237, 199, 1, 0.55);
}

.estimate-tier-card.is-featured.is-selected {
    border-color: var(--accent-color);
    background: rgba(237, 199, 1, 0.06);
}

.estimate-tier-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--bg-color);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.estimate-tier-card.is-featured .estimate-tier-badge {
    background: var(--accent-color);
    color: var(--primary-color);
}

.estimate-tier-card h4 {
    font-size: 22px;
    margin-bottom: 8px;
}

.estimate-tier-card > p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(24, 24, 24, 0.58);
    margin-bottom: 14px;
    min-height: 42px;
}

.estimate-tier-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.estimate-tier-card li {
    position: relative;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(24, 24, 24, 0.68);
    margin-bottom: 6px;
}

.estimate-tier-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 10px;
    color: var(--accent-color);
}

.estimate-project-type {
    margin-top: 18px;
}

.estimate-project-type label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.estimate-project-type select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    background: var(--white-color);
    font-size: 14px;
}

.estimate-summary-sticky {
    position: sticky;
    top: 100px;
}

.estimate-summary-card {
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 24px 60px rgba(24, 24, 24, 0.18);
}

.estimate-summary-card h3 {
    color: var(--white-color);
    font-size: 20px;
    margin-bottom: 6px;
}

.estimate-summary-card > p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 22px;
}

.estimate-summary-total {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 18px;
}

.estimate-summary-total span {
    display: block;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}

.estimate-summary-total strong {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1.1;
}

.estimate-summary-lines {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.estimate-summary-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.estimate-summary-line span:first-child {
    color: rgba(255, 255, 255, 0.72);
}

.estimate-summary-line span:last-child {
    font-weight: 600;
    white-space: nowrap;
}

.estimate-summary-meta {
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 20px;
}

.estimate-summary-actions {
    display: grid;
    gap: 10px;
}

.estimate-summary-actions .btn-default {
    width: 100%;
    justify-content: center;
}

.estimate-summary-empty {
    padding: 24px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}

.estimate-quote-section {
    padding: 90px 0 110px;
    background: var(--white-color);
}

.estimate-quote-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: start;
}

.estimate-quote-preview {
    padding: 24px;
    border-radius: 18px;
    background: var(--bg-color);
    border: 1px solid var(--divider-color);
    font-size: 13px;
    line-height: 1.75;
    color: rgba(24, 24, 24, 0.72);
    white-space: pre-wrap;
    min-height: 280px;
}

.estimate-quote-form .form-group {
    margin-bottom: 18px;
}

.estimate-quote-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.estimate-quote-form .form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    font-size: 14px;
}

.estimate-quote-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.estimate-quote-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.estimate-form-msg {
    font-size: 14px;
    font-weight: 600;
}

.estimate-form-msg.is-success {
    color: #2e7d32;
}

.estimate-form-msg.is-error {
    color: #c62828;
}

@media (max-width: 1199px) {
    .estimate-layout {
        grid-template-columns: 1fr;
    }

    .estimate-summary-sticky {
        position: static;
    }
}

@media (max-width: 991px) {
    .estimate-scope-grid,
    .estimate-tier-grid,
    .estimate-quote-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .estimate-main-section,
    .estimate-quote-section {
        padding-top: 64px;
        padding-bottom: 72px;
    }

    .estimate-panel {
        padding: 20px 18px;
    }

    .estimate-page-hero .container,
    .estimate-main-section .container,
    .estimate-quote-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .estimate-tier-card,
    .estimate-scope-card {
        min-height: 44px;
    }

    .estimate-summary-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
