:root {
    --evo-primary: #1e3a8a;
    --evo-primary-light: #3b82f6;
    --evo-accent: #10b981;
    --evo-bg: #ffffff;
    --evo-surface: #f9fafb;
    --evo-border: rgba(0, 0, 0, 0.06);
    --evo-text-primary: #1f2937;
    --evo-text-secondary: #6b7280;
    --evo-text-tertiary: #9ca3af;
    --evo-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --evo-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    --evo-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --evo-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --evo-radius-sm: 8px;
    --evo-radius: 12px;
    --evo-radius-lg: 16px;
    --evo-radius-xl: 20px;
}

.evo-calc-pro-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
    background: var(--evo-bg);
    border: 1px solid var(--evo-border);
    border-radius: var(--evo-radius-xl);
    padding: 48px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: var(--evo-shadow-xl);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

.evo-calc-header {
    text-align: center;
    margin-bottom: 48px;
}

.evo-calc-title {
    font-size: 40px;
    font-weight: 600;
    color: var(--evo-text-primary);
    margin: 0 0 12px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.evo-calc-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: var(--evo-text-secondary);
    margin: 0;
    letter-spacing: -0.01em;
}

.evo-progress-bar {
    position: relative;
    margin-bottom: 56px;
}

.evo-progress-track {
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--evo-border);
    overflow: hidden;
}

.evo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--evo-primary) 0%, var(--evo-primary-light) 100%);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.evo-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.evo-step-indicator {
    flex: 1;
    display: flex;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.evo-step-indicator:hover .step-circle {
    transform: scale(1.05);
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--evo-surface);
    border: 2px solid var(--evo-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--evo-shadow-sm);
}

.step-number,
.step-icon {
    font-size: 18px;
    font-weight: 600;
    color: var(--evo-text-tertiary);
    transition: all 0.3s ease;
}

.step-icon {
    display: none;
}

.step-checkmark {
    display: none;
    font-size: 20px;
    color: #ffffff;
}

.evo-step-indicator.active .step-circle {
    background: linear-gradient(135deg, var(--evo-primary) 0%, var(--evo-primary-light) 100%);
    border-color: var(--evo-primary);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    transform: scale(1.1);
}

.evo-step-indicator.active .step-number {
    display: none;
}

.evo-step-indicator.active .step-icon {
    display: block;
    color: #ffffff;
}

.evo-step-indicator.completed .step-circle {
    background: var(--evo-accent);
    border-color: var(--evo-accent);
}

.evo-step-indicator.completed .step-number,
.evo-step-indicator.completed .step-icon {
    display: none;
}

.evo-step-indicator.completed .step-checkmark {
    display: block;
}

.evo-calc-content {
    position: relative;
    min-height: 520px;
}

.evo-service-form {
    display: none;
    animation: fadeSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.evo-service-form.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--evo-border);
}

.form-icon {
    font-size: 32px;
    color: var(--evo-primary);
    line-height: 1;
}

.form-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--evo-text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.form-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.service-fields-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-fields-wrapper.disabled {
    opacity: 0.4;
    pointer-events: none;
    transform: translateY(10px);
}

.evo-form-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--evo-text-primary);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-label i {
    color: var(--evo-primary);
    font-size: 16px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--evo-surface);
    border-radius: var(--evo-radius);
    border: 1px solid var(--evo-border);
}

.evo-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--evo-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.evo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--evo-primary);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(30, 58, 138, 0.1);
    transition: all 0.2s ease;
}

.evo-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 0 0 6px rgba(30, 58, 138, 0.15);
}

.evo-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--evo-primary);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.slider-value-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.slider-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--evo-primary);
    line-height: 1;
}

.slider-unit {
    font-size: 12px;
    font-weight: 500;
    color: var(--evo-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* === NEW: Custom Select Dropdown Styles === */
.evo-select-hidden {
    display: none;
}
.evo-custom-select-wrapper {
    position: relative;
    width: 100%;
}
.evo-custom-select {
    position: relative;
    cursor: pointer;
}
.evo-custom-select__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--evo-border);
    border-radius: var(--evo-radius);
    font-size: 16px;
    font-weight: 500;
    color: var(--evo-text-primary);
    background: var(--evo-bg);
    transition: all 0.2s ease;
}
.evo-custom-select:hover .evo-custom-select__trigger {
    border-color: var(--evo-text-tertiary);
}
.evo-custom-select.open .evo-custom-select__trigger {
    border-color: var(--evo-primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}
.evo-custom-select__trigger .arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--evo-text-secondary);
    transition: transform 0.2s ease;
}
.evo-custom-select.open .arrow {
    transform: rotate(180deg);
}
.evo-custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--evo-bg);
    border-radius: var(--evo-radius);
    border: 1px solid var(--evo-border);
    box-shadow: var(--evo-shadow-lg);
    z-index: 10;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}
.evo-custom-select.open .evo-custom-options {
    display: block;
}
.evo-custom-option {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--evo-text-primary);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.evo-custom-option:hover {
    background-color: var(--evo-surface);
    color: var(--evo-primary);
}
.evo-custom-option.selected {
    background-color: rgba(30, 58, 138, 0.08);
    color: var(--evo-primary);
    font-weight: 600;
}
/* === End Custom Select Styles === */

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.option-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.option-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--evo-border);
    border-radius: var(--evo-radius);
    background: var(--evo-bg);
    transition: all 0.2s ease;
}

.option-card:hover .option-content {
    border-color: var(--evo-text-tertiary);
    background: var(--evo-surface);
}

.option-checkbox:checked + .option-content {
    border-color: var(--evo-primary);
    background: rgba(30, 58, 138, 0.04);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.06);
}

.option-icon {
    font-size: 20px;
    color: var(--evo-primary);
    transition: color 0.2s ease;
}

.service-opt-in + .option-content .option-icon::before {
    content: "\f111"; /* fa-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    color: var(--evo-text-tertiary);
}

.service-opt-in:checked + .option-content .option-icon::before {
    content: "\f058"; /* fa-check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--evo-primary);
}


.option-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--evo-text-primary);
}

.option-text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-subtext {
    font-size: 13px;
    color: var(--evo-text-secondary);
}

/* Styling for the new toggle switch */
.evo-form-field-toggle {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--evo-border);
    border-radius: var(--evo-radius);
    background: var(--evo-bg);
    margin-top: 8px;
}

.toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.evo-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.evo-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.evo-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--evo-border);
    border-radius: 28px;
    transition: .4s;
}

.evo-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
    box-shadow: var(--evo-shadow-sm);
}

input:checked + .evo-toggle-slider {
    background-color: var(--evo-primary);
}

input:checked + .evo-toggle-slider:before {
    transform: translateX(22px);
}

.radio-grid {
    display: grid;
    gap: 12px;
}

.radio-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-content {
    padding: 20px;
    border: 2px solid var(--evo-border);
    border-radius: var(--evo-radius);
    background: var(--evo-bg);
    transition: all 0.2s ease;
}

.radio-card:hover .radio-content {
    border-color: var(--evo-text-tertiary);
    background: var(--evo-surface);
}

.radio-card input[type="radio"]:checked + .radio-content {
    border-color: var(--evo-primary);
    background: rgba(30, 58, 138, 0.04);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.06);
}

.radio-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.radio-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--evo-border);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.radio-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--evo-primary);
    transition: transform 0.2s ease;
}

.radio-card input[type="radio"]:checked + .radio-content .radio-check {
    border-color: var(--evo-primary);
}

.radio-card input[type="radio"]:checked + .radio-content .radio-check::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--evo-text-primary);
}

.radio-desc {
    font-size: 14px;
    color: var(--evo-text-secondary);
    margin: 0;
    padding-left: 32px;
}

.form-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 32px;
    border-top: 1px solid var(--evo-border);
}

.evo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--evo-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    letter-spacing: -0.01em;
}

.evo-btn-prev {
    background: var(--evo-surface);
    color: var(--evo-text-primary);
}

.evo-btn-prev:hover {
    background: var(--evo-border);
}

.evo-btn-next {
    background: linear-gradient(135deg, var(--evo-primary) 0%, var(--evo-primary-light) 100%);
    color: #ffffff;
    box-shadow: var(--evo-shadow);
}

.evo-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: var(--evo-shadow-lg);
}

.summary-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-service {
    padding: 20px;
    background: var(--evo-surface);
    border-radius: var(--evo-radius);
    border: 1px solid var(--evo-border);
}

.summary-service-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--evo-text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-service-title i {
    color: var(--evo-primary);
}

.summary-service-details {
    font-size: 14px;
    color: var(--evo-text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.summary-service-commitment {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(30, 58, 138, 0.08);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--evo-primary);
    margin-top: 8px;
}

.summary-service-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--evo-primary);
}

.summary-service-discount-amount {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--evo-accent);
    margin-top: 6px;
}

.summary-discount {
    border-color: var(--evo-accent);
    background: rgba(16, 185, 129, 0.04);
}

.summary-discount .summary-service-title {
    color: var(--evo-accent);
}

.summary-discount .summary-service-title i {
    color: var(--evo-accent);
}

.summary-discount .summary-service-price {
    color: var(--evo-accent);
}

.summary-result {
    position: sticky;
    top: 24px;
}

.result-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 2px solid var(--evo-primary);
    border-radius: var(--evo-radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--evo-shadow-lg);
}

.result-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--evo-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.result-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.price-value {
    font-size: 56px;
    font-weight: 700;
    color: var(--evo-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.price-currency {
    font-size: 32px;
    font-weight: 600;
    color: var(--evo-primary);
}

.result-period {
    font-size: 16px;
    font-weight: 500;
    color: var(--evo-text-secondary);
    margin-bottom: 32px;
}

.evo-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--evo-primary) 0%, var(--evo-primary-light) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--evo-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--evo-shadow-lg);
}

.evo-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--evo-shadow-xl);
}

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

    .summary-result {
        position: static;
    }
}

@media (max-width: 768px) {
    .evo-calc-pro-wrapper {
        padding: 32px 24px;
    }

    .evo-calc-title {
        font-size: 32px;
    }

    .evo-progress-track {
        left: 40px;
        right: 40px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
    }

    .form-title {
        font-size: 24px;
    }

    .slider-container {
        flex-direction: column;
        gap: 16px;
    }

    .slider-value-display {
        flex-direction: row;
        gap: 8px;
    }

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

    .form-footer {
        flex-direction: column-reverse;
    }

    .evo-btn {
        width: 100%;
        justify-content: center;
    }

    .price-value {
        font-size: 48px;
    }
}