/**
 * Cost Estimator Section Styles
 * Dynamic Developer
 */

/* ============================================
   COST ESTIMATOR SECTION
   ============================================ */
.cost-estimator-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.estimator-container {
    max-width: 1000px;
    margin: 0 auto;
}

.estimator-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--gray-200);
}

/* Form Steps */
.estimator-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.form-step {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.step-label {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--dark-900);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.step-number {
    width: 35px;
    height: 35px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    flex-shrink: 0;
}

.step-description {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-4);
}

/* Website Type Cards */
.website-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
}

.type-card {
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.type-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.type-card.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.type-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.type-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.type-name {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--dark-900);
}

/* Number of Pages Slider */
.pages-slider-wrapper {
    padding: var(--space-4) 0;
}

.slider-container {
    position: relative;
    margin-bottom: var(--space-6);
}

.pages-slider {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.pages-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.pages-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-lg);
}

.pages-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.pages-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-lg);
}

.slider-value {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-top: var(--space-3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* Features Checkboxes */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.feature-checkbox {
    position: relative;
}

.feature-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.feature-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--dark-700);
}

.feature-checkbox input[type="checkbox"]:checked+.feature-label {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: var(--primary-color);
    color: var(--dark-900);
}

.feature-label:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.feature-checkbox-icon {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-400);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.feature-checkbox input[type="checkbox"]:checked+.feature-label .feature-checkbox-icon {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

.feature-checkbox input[type="checkbox"]:checked+.feature-label .feature-checkbox-icon::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--white);
    font-size: 12px;
}

/* Timeline Radio Buttons */
.timeline-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
}

.timeline-option {
    position: relative;
}

.timeline-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.timeline-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    min-height: 100px;
}

.timeline-option input[type="radio"]:checked+.timeline-label {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.timeline-label:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.timeline-duration {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-1);
}

.timeline-icon {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

/* Cost Display */
.cost-display {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    margin-top: var(--space-6);
}

.cost-label {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--dark-700);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cost-amount {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

.cost-note {
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-style: italic;
}

/* WhatsApp CTA */
.whatsapp-cta {
    margin-top: var(--space-6);
    text-align: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-10);
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

.whatsapp-btn i {
    font-size: var(--text-2xl);
}

/* Divider */
.estimator-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-300) 50%, transparent 100%);
    margin: var(--space-6) 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .estimator-card {
        padding: var(--space-6);
    }

    .website-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .timeline-options {
        grid-template-columns: 1fr;
    }

    .cost-amount {
        font-size: var(--text-4xl);
    }

    .whatsapp-btn {
        width: 100%;
        font-size: var(--text-lg);
        padding: var(--space-4) var(--space-6);
    }

    .step-label {
        font-size: var(--text-lg);
    }
}

@media (max-width: 480px) {
    .website-type-grid {
        grid-template-columns: 1fr;
    }

    .cost-amount {
        font-size: var(--text-3xl);
    }
}