/* 
 * Ethos 03 Calculator Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

#ethos-03-calculator-wrapper {
    font-family: 'Poppins', sans-serif;
    max-width: 700px;
    margin: 0 auto;
    color: #4A5568;
    background: #ffffff;
    box-sizing: border-box;
}

#ethos-03-calculator-wrapper * {
    box-sizing: border-box;
}

#ethos-03-calculator-wrapper .ethos-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #0B1C34;
    margin-bottom: 10px;
}

#ethos-03-calculator-wrapper .ethos-title span {
    font-weight: 400;
}

#ethos-03-calculator-wrapper .ethos-subtitle {
    text-align: center;
    font-size: 15px;
    color: #4B5563;
    margin-bottom: 40px;
    line-height: 1.5;
}

#ethos-03-calculator-wrapper .ethos-section {
    margin-bottom: 30px;
}

#ethos-03-calculator-wrapper .ethos-section-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #6B7280;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#ethos-03-calculator-wrapper .ethos-options-group {
    display: flex;
    gap: 15px;
}

#ethos-03-calculator-wrapper .ethos-option {
    flex: 1;
    cursor: pointer;
    position: relative;
}

#ethos-03-calculator-wrapper .ethos-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#ethos-03-calculator-wrapper .ethos-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 1px solid #D4C3A1;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.2s ease;
    height: 100%;
    min-height: 80px;
}

/* Returns Options layout specifically */
#ethos-03-calculator-wrapper .ethos-returns .ethos-option-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

#ethos-03-calculator-wrapper .ethos-option-content>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Selected State */
#ethos-03-calculator-wrapper .ethos-option input[type="radio"]:checked+.ethos-option-content {
    background: #0B1C34;
    border-color: #0B1C34;
    color: #ffffff;
}

/* Selected State overrides for returns section */
#ethos-03-calculator-wrapper .ethos-returns .ethos-option input[type="radio"]:checked+.ethos-option-content {
    background: #0B1C34;
    border-color: #0B1C34;
}

/* Text styles inside options */
#ethos-03-calculator-wrapper .ethos-series {
    font-size: 11px;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 5px;
}

#ethos-03-calculator-wrapper .ethos-duration {
    font-size: 16px;
    font-weight: 700;
    color: #0B1C34;
}

#ethos-03-calculator-wrapper .ethos-option input[type="radio"]:checked+.ethos-option-content .ethos-duration,
#ethos-03-calculator-wrapper .ethos-option input[type="radio"]:checked+.ethos-option-content .ethos-rate,
#ethos-03-calculator-wrapper .ethos-option input[type="radio"]:checked+.ethos-option-content .ethos-frequency {
    color: #ffffff;
}

#ethos-03-calculator-wrapper .ethos-rate {
    font-size: 20px;
    font-weight: 700;
    color: #0B1C34;
    line-height: 1.2;
}

#ethos-03-calculator-wrapper .ethos-frequency {
    font-size: 13px;
    color: #6B7280;
    margin-top: 4px;
}

/* Custom Radio Circle for returns */
#ethos-03-calculator-wrapper .ethos-radio-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #D4C3A1;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

#ethos-03-calculator-wrapper .ethos-returns .ethos-option input[type="radio"]:checked+.ethos-option-content .ethos-radio-circle {
    border-color: #ffffff;
}

#ethos-03-calculator-wrapper .ethos-returns .ethos-option input[type="radio"]:checked+.ethos-option-content .ethos-radio-circle::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 8px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Inputs Row */
#ethos-03-calculator-wrapper .ethos-inputs-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

#ethos-03-calculator-wrapper .ethos-input-group {
    flex: 1;
}

#ethos-03-calculator-wrapper .ethos-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #D4C3A1;
    border-radius: 12px;
    padding: 0 16px;
    background: #ffffff;
    height: 56px;
}

#ethos-03-calculator-wrapper .ethos-currency {
    color: #6B7280;
    font-size: 18px;
    margin-right: 8px;
    font-weight: 500;
}

#ethos-03-calculator-wrapper .ethos-input-wrapper input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #0B1C34;
    padding: 0;
    box-shadow: none;
}

#ethos-03-calculator-wrapper .ethos-input-wrapper input[type="date"] {
    color: #4A5568;
    cursor: pointer;
}

/* Results Section */
#ethos-03-calculator-wrapper .ethos-results-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #F3F4F6;
}

#ethos-03-calculator-wrapper .ethos-total-return-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

#ethos-03-calculator-wrapper .ethos-total-label {
    font-size: 13px;
    font-weight: 700;
    color: #6B7280;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

#ethos-03-calculator-wrapper .ethos-total-value {
    font-size: 48px;
    font-weight: 800;
    color: #0B1C34;
    line-height: 1;
}

#ethos-03-calculator-wrapper .ethos-rate-badge {
    background: #DFF7ED;
    color: #10B981;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
}

#ethos-03-calculator-wrapper .ethos-divider {
    border: 0;
    height: 1px;
    background: #D4C3A1;
    margin: 30px 0;
}

#ethos-03-calculator-wrapper .ethos-schedule-header {
    font-size: 13px;
    font-weight: 700;
    color: #6B7280;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

/* Timeline */
#ethos-03-calculator-wrapper .ethos-schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px;
    position: relative;
}

/* Custom Scrollbar for timeline */
#ethos-03-calculator-wrapper .ethos-schedule-timeline::-webkit-scrollbar {
    width: 6px;
}

#ethos-03-calculator-wrapper .ethos-schedule-timeline::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 10px;
}

#ethos-03-calculator-wrapper .ethos-schedule-timeline::-webkit-scrollbar-thumb {
    background: #D4C3A1;
    border-radius: 10px;
}

#ethos-03-calculator-wrapper .ethos-timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 20px;
}

#ethos-03-calculator-wrapper .ethos-timeline-item::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 40px;
    bottom: -30px;
    width: 2px;
    background: #D4C3A1;
    z-index: 1;
}

#ethos-03-calculator-wrapper .ethos-timeline-item:last-child::before {
    display: none;
}

#ethos-03-calculator-wrapper .ethos-timeline-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F3F4F6;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    margin-right: 20px;
    z-index: 2;
    position: relative;
}

#ethos-03-calculator-wrapper .ethos-timeline-content {
    flex: 1;
}

#ethos-03-calculator-wrapper .ethos-timeline-amount {
    font-size: 18px;
    font-weight: 800;
    color: #0B1C34;
    margin-bottom: 2px;
}

#ethos-03-calculator-wrapper .ethos-timeline-date {
    font-size: 13px;
    color: #6B7280;
}

#ethos-03-calculator-wrapper .ethos-timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4C3A1;
    margin-left: 10px;
}

/* Disclaimers */
#ethos-03-calculator-wrapper .ethos-disclaimer {
    margin-top: 30px;
    font-size: 12px;
    color: #6B7280;
    line-height: 1.6;
}

#ethos-03-calculator-wrapper .ethos-disclaimer-title {
    font-weight: 700;
    margin-bottom: 5px;
}

#ethos-03-calculator-wrapper .ethos-disclaimer-text {
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    #ethos-03-calculator-wrapper .ethos-options-group {
        flex-direction: column;
    }

    #ethos-03-calculator-wrapper .ethos-inputs-row {
        flex-direction: column;
    }

    #ethos-03-calculator-wrapper .ethos-results-card {
        padding: 24px;
    }

    #ethos-03-calculator-wrapper .ethos-total-value {
        font-size: 32px;
    }
}