/* Fees Calculator Section */
.fees-calculator-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fdff 0%, #e8f6ff 100%);
    position: relative;
    overflow: hidden;
}

.fees-calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(41, 98, 115, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(62, 178, 77, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.fees-calculator-wrapper {
    position: relative;
    z-index: 2;
}

.calculator-header {
    margin-bottom: 2rem;
}

.calculator-header .teaser-subtitle {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(62, 178, 77, 0.1);
}

.calculator-header .teaser-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.calculator-header .teaser-description {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Initial CTA Section */
.initial-cta-section {
    text-align: center;
    transition: all 0.6s ease;
}

.initial-cta-section.hidden {
    display: none;
}

.compact-cta {
    max-width: 400px;
    margin: 0 auto;
}

.btn-start-calculator {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(41, 98, 115, 0.2);
    cursor: pointer;
}

.btn-start-calculator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 178, 77, 0.3);
    color: var(--white);
    text-decoration: none;
    background: var(--secondary-color);
}

.btn-start-calculator i {
    transition: transform 0.3s ease;
}

.btn-start-calculator:hover i:last-child {
    transform: translateX(3px);
}

/* Calculator Container */
.calculator-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(41, 98, 115, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.calculator-container.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Progress Indicator */
.calculator-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 4px;
    background: rgba(41, 98, 115, 0.1);
    border-radius: 2px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.5;
    transition: all 0.4s ease;
    cursor: pointer;
    flex: 1;
    max-width: 120px;
}

.progress-steps .step.active {
    opacity: 1;
    transform: scale(1.05);
}

.progress-steps .step i {
    width: 48px;
    height: 48px;
    background: rgba(41, 98, 115, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.progress-steps .step.active i {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(41, 98, 115, 0.3);
}

.progress-steps .step span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    line-height: 1.2;
}

/* Calculator Steps */
.calculator-step {
    display: none;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculator-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.calculator-step.slide-out {
    opacity: 0;
    transform: translateX(-50px);
}
.calculator-step .step-content {
    background: transparent; 
    padding: 0;
    box-shadow: none;
}
.calculator-step .step-content::before {
    opacity: 0;
}

.calculator-step .step-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0rem;
    text-align: center;
    display: block;
}

.calculator-step .step-description {
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.options-grid.location-options,
.options-grid.membership-options {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.option-card {
    position: relative;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card input[type="radio"]:checked + .option-content {
    border-color: var(--primary-color);
    background: var(--light-blue);
}

.option-card input[type="radio"]:checked + .option-content::after {
    opacity: 1;
    transform: scale(1);
}

.option-content {
    position: relative;
    z-index: 2;
    text-align: center;
    border: 2px solid rgba(41, 98, 115, 0.1);
    border-radius: 15px;
    padding: 1rem 0.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.option-content::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    display: none;
}

.option-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.option-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.option-card:hover .option-icon::before {
    transform: translateX(100%);
}

.option-icon i {
    font-size: 1.5rem;
    color: var(--white);
    z-index: 1;
    position: relative;
}

.option-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.option-content p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
    display: none;
}
#step2 .option-content p {
    display: block;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.step-navigation .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.step-navigation .btn-primary {
    background: var(--primary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(41, 98, 115, 0.3);
}

.step-navigation .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 178, 77, 0.4);
}

.step-navigation .btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.step-navigation .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Results Step */
.results-step {
    text-align: center;
}

.results-icon {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.results-icon i {
    font-size: 3rem;
    color: var(--secondary-color);
    animation: successPulse 2s ease-in-out;
}

.fee-display {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem;
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.fee-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.1;
}

.fee-amount {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.fee-label {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.fee-breakdown {
    background: rgba(41, 98, 115, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.fee-breakdown h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.breakdown-grid {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.breakdown-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.breakdown-header i {
    font-size: 1.2rem;
}

.breakdown-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breakdown-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid rgba(41, 98, 115, 0.1);
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(41, 98, 115, 0.1);
}

.breakdown-item i {
    font-size: 0.9rem;
}

.breakdown-note {
    margin-top: 1.5rem;
    padding: 0.8rem;
    background: rgba(41, 98, 115, 0.08);
    border-radius: 8px;
    font-style: italic;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.breakdown-note i {
    font-size: 1.1rem;
}

/* Color classes for icons */
.text-success {
    color: var(--secondary-color) !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.coordinated-message {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2rem 0;
    text-align: center;
}

.coordinated-message h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.coordinated-message p {
    color: var(--white);
    opacity: 0.95;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 2rem;
}

.results-actions .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 4px;
}

.calculator-reset {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(41, 98, 115, 0.1);
}

.calculator-reset .btn-link {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.calculator-reset .btn-link:hover {
    background: rgba(41, 98, 115, 0.05);
    color: var(--secondary-color) !important;
}

/* Animations */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}
