/* Estimator Page Styles */

.estimator-page {
    min-height: 100vh;
    padding: 8rem 6% 4rem;
    position: relative;
    z-index: 10;
}

.estimator-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.estimator-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease;
}

.estimator-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.estimator-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Progress Bar */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    transition: all 0.3s ease;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.progress-step.completed .step-circle {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.3s ease;
}

.progress-step.active .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--glass-border);
    position: relative;
    margin: 0 1rem;
}

.progress-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.5s ease;
}

.progress-step.completed ~ .progress-line::after,
.progress-step.active ~ .progress-line::after {
    width: 100%;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.step-content.active {
    display: block;
}

.step-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.step-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Project Type Cards */
.project-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-type-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-type-card input[type="radio"] {
    display: none;
}

.project-type-card .card-content {
    padding: 2rem;
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.project-type-card:hover .card-content {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.project-type-card input[type="radio"]:checked ~ .card-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.project-type-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-type-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-type-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.price-range {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-category {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.feature-category h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-checkbox:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--glass-border);
}

.feature-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.feature-checkbox input[type="checkbox"]:checked ~ span:first-of-type {
    color: var(--text-primary);
    font-weight: 600;
}

.feature-checkbox span:first-of-type {
    flex: 1;
    color: var(--text-secondary);
}

.feature-price {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-left: 1rem;
}

/* Preferences Section */
.preferences-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.preference-group h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.radio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.radio-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card .card-content {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.radio-card:hover .card-content {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.radio-card input[type="radio"]:checked ~ .card-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.25);
}

.radio-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.radio-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.radio-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.price-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

/* Results Section */
.estimate-results {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.price-display {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid var(--primary);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.price-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.price-range-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.price-separator {
    color: var(--primary);
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Breakdown */
.breakdown {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.breakdown h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.total {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.breakdown-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

/* PDF Section */
.pdf-section {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.pdf-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pdf-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pdf-form {
    max-width: 500px;
    margin: 0 auto;
}

.pdf-form .form-row {
    display: flex;
    gap: 1rem;
}

.pdf-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

.pdf-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.pdf-form button {
    white-space: nowrap;
}

.success-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-weight: 600;
}

/* Next Steps */
.next-steps {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.next-steps h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.next-steps p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
}

.step-navigation button {
    min-width: 150px;
}

/* Active Navigation Link */
.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .estimator-page {
        padding: 6rem 5% 3rem;
    }

    .progress-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .progress-line {
        display: none;
    }

    .progress-step {
        flex: 1 1 40%;
    }

    .project-types {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .radio-cards {
        grid-template-columns: 1fr;
    }

    .price-range-display {
        flex-direction: column;
        gap: 0.5rem;
    }

    .price-separator {
        display: none;
    }

    .pdf-form .form-row {
        flex-direction: column;
    }

    .step-navigation {
        flex-direction: column-reverse;
    }

    .step-navigation button {
        width: 100%;
    }
}
