/* 
 * Harvest Calculator Styles - Redesigned v2.0 (Two-Column Layout)
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

#harvest-calculator-wrapper.harvest-calculator {
    all: initial !important;
    display: block !important;
    font-family: 'Poppins', sans-serif !important;
    max-width: 700px !important;
    width: 100% !important;
    color: #4A5568 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    border-radius: 24px !important;
    padding: 40px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(212, 195, 161, 0.4) !important;
    transition: max-width 0.3s ease, padding 0.3s ease !important;
    margin: 0 auto !important;
}

#harvest-calculator-wrapper * {
    box-sizing: border-box !important;
    font-family: 'Poppins', sans-serif !important;
}

#harvest-calculator-wrapper .hc-header {
    text-align: center !important;
    margin-bottom: 2.5rem !important;
    display: block !important;
}

#harvest-calculator-wrapper .hc-title {
    text-align: center !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #0B1C34 !important;
    margin: 0 0 10px 0 !important;
    transition: text-align 0.3s ease !important;
    line-height: 1.2 !important;
}

#harvest-calculator-wrapper .hc-title span {
    font-weight: 400 !important;
    color: #D4AF37 !important;
}

#harvest-calculator-wrapper .hc-subtitle {
    text-align: center !important;
    font-size: 15px !important;
    color: #4B5563 !important;
    margin-bottom: 40px !important;
    line-height: 1.5 !important;
    transition: text-align 0.3s ease !important;
}

#harvest-calculator-wrapper .hc-section {
    margin-bottom: 30px !important;
    display: block !important;
}

#harvest-calculator-wrapper .hc-section-label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #6B7280 !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}

/* Term Info Display Box */
#harvest-calculator-wrapper .hc-term-info-box {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 15px !important;
    border: 1px solid rgba(212, 195, 161, 0.5) !important;
    background: #F9FAFB !important;
    width: 100% !important;
    cursor: default !important;
    border-radius: 12px !important;
}

#harvest-calculator-wrapper .hc-info-column {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 1 !important;
}

#harvest-calculator-wrapper .hc-info-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #D4AF37 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#harvest-calculator-wrapper .hc-info-value {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0B1C34 !important;
    margin-top: 4px !important;
}

#harvest-calculator-wrapper .hc-info-divider {
    width: 1px !important;
    background: #D4C3A1 !important;
    align-self: stretch !important;
    margin: 0 10px !important;
    opacity: 0.6 !important;
}

/* Term Sliding Selector */
#harvest-calculator-wrapper .hc-term-toggle {
    display: flex !important;
    background: #F3F4F6 !important;
    border-radius: 14px !important;
    padding: 4px !important;
    position: relative !important;
    border: 1px solid #E5E7EB !important;
    margin-bottom: 10px !important;
}

#harvest-calculator-wrapper .hc-term-toggle input[type="radio"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
}

#harvest-calculator-wrapper .hc-term-toggle label {
    flex: 1 !important;
    text-align: center !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 2 !important;
    transition: color 0.25s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    line-height: 1.3 !important;
}

#harvest-calculator-wrapper .hc-term-toggle label span.hc-series-tag {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #D4AF37 !important;
    margin-bottom: 2px !important;
}

#harvest-calculator-wrapper .hc-term-toggle input[type="radio"]:checked + label {
    color: #ffffff !important;
}

#harvest-calculator-wrapper .hc-term-toggle input[type="radio"]:checked + label span.hc-series-tag {
    color: #ffffff !important;
}

#harvest-calculator-wrapper .hc-toggle-bg {
    position: absolute !important;
    top: 4px !important;
    left: 4px !important;
    bottom: 4px !important;
    width: calc(33.333% - 5.33px) !important;
    background: #0B1C34 !important;
    border-radius: 10px !important;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    z-index: 1 !important;
    display: block !important;
}

#harvest-calculator-wrapper #hc-term-14:checked ~ .hc-toggle-bg {
    transform: translateX(0%) !important;
}

#harvest-calculator-wrapper #hc-term-20:checked ~ .hc-toggle-bg {
    transform: translateX(100%) !important;
}

#harvest-calculator-wrapper #hc-term-32:checked ~ .hc-toggle-bg {
    transform: translateX(200%) !important;
}

/* Return Option Cards */
#harvest-calculator-wrapper .hc-return-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

#harvest-calculator-wrapper .hc-option-card {
    display: block !important;
    cursor: pointer !important;
    margin: 0 !important;
    position: relative !important;
    width: 100% !important;
}

#harvest-calculator-wrapper .hc-option-card input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

#harvest-calculator-wrapper .hc-card-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px !important;
    border: 1px solid #D4C3A1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    height: 100% !important;
    min-height: 80px !important;
}

#harvest-calculator-wrapper .hc-option-card:hover .hc-card-content {
    border-color: #0B1C34 !important;
    transform: translateY(-2px) !important;
}

#harvest-calculator-wrapper .hc-option-card input[type="radio"]:checked + .hc-card-content {
    background: #0B1C34 !important;
    border-color: #0B1C34 !important;
    color: #ffffff !important;
}

#harvest-calculator-wrapper .hc-card-content > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

#harvest-calculator-wrapper .hc-card-rate {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0B1C34 !important;
    line-height: 1.2 !important;
}

#harvest-calculator-wrapper .hc-card-freq {
    font-size: 13px !important;
    color: #6B7280 !important;
    margin-top: 4px !important;
}

#harvest-calculator-wrapper .hc-option-card input[type="radio"]:checked + .hc-card-content .hc-card-rate {
    color: #ffffff !important;
}

#harvest-calculator-wrapper .hc-option-card input[type="radio"]:checked + .hc-card-content .hc-card-freq {
    color: rgba(255, 255, 255, 0.8) !important;
}

#harvest-calculator-wrapper .hc-radio-indicator {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    border: 2px solid #D4C3A1 !important;
    display: inline-block !important;
    position: relative !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    background: transparent !important;
}

#harvest-calculator-wrapper .hc-option-card input[type="radio"]:checked + .hc-card-content .hc-radio-indicator {
    border-color: #ffffff !important;
}

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

/* Hide SVG icon from old markup if present */
#harvest-calculator-wrapper .hc-check-icon {
    display: none !important;
}

/* Inputs Row */
#harvest-calculator-wrapper .hc-row {
    display: flex !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

#harvest-calculator-wrapper .hc-input-group {
    flex: 1 !important;
    display: block !important;
}

#harvest-calculator-wrapper .hc-input-wrap {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #D4C3A1 !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    background: #ffffff !important;
    height: 56px !important;
    width: 100% !important;
    transition: border-color 0.2s ease !important;
}

#harvest-calculator-wrapper .hc-input-wrap:focus-within {
    border-color: #0B1C34 !important;
}

#harvest-calculator-wrapper .hc-input-icon {
    color: #6B7280 !important;
    font-size: 18px !important;
    margin-right: 8px !important;
    font-weight: 500 !important;
}

#harvest-calculator-wrapper .hc-input-wrap input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    flex: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #0B1C34 !important;
    padding: 0 !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
}

/* Hide number input spinners */
#harvest-calculator-wrapper .hc-input-wrap input::-webkit-outer-spin-button,
#harvest-calculator-wrapper .hc-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
#harvest-calculator-wrapper .hc-input-wrap input[type=number] {
    -moz-appearance: textfield !important;
}

#harvest-calculator-wrapper .hc-input-wrap input[type="date"] {
    color: #4A5568 !important;
    cursor: pointer !important;
}

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

#harvest-calculator-wrapper .hc-total-return-header {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 25px !important;
}

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

#harvest-calculator-wrapper .hc-total-value-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
}

#harvest-calculator-wrapper .hc-total-value {
    font-size: 48px !important;
    font-weight: 800 !important;
    color: #0B1C34 !important;
    line-height: 1 !important;
}

#harvest-calculator-wrapper .hc-rate-badge {
    background: #DFF7ED !important;
    color: #10B981 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    text-align: center !important;
    display: inline-block !important;
}

#harvest-calculator-wrapper .hc-divider {
    border: 0 !important;
    height: 1px !important;
    background: #D4C3A1 !important;
    margin: 30px 0 !important;
    display: block !important;
}

#harvest-calculator-wrapper .hc-schedule-header {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #6B7280 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 25px !important;
    display: block !important;
}

/* Timeline */
#harvest-calculator-wrapper .hc-schedule-timeline {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    padding-right: 15px !important;
    position: relative !important;
    list-style: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
}

/* Custom Scrollbar for timeline */
#harvest-calculator-wrapper .hc-schedule-timeline::-webkit-scrollbar {
    width: 6px !important;
}

#harvest-calculator-wrapper .hc-schedule-timeline::-webkit-scrollbar-track {
    background: #F3F4F6 !important;
    border-radius: 10px !important;
}

#harvest-calculator-wrapper .hc-schedule-timeline::-webkit-scrollbar-thumb {
    background: #D4C3A1 !important;
    border-radius: 10px !important;
}

#harvest-calculator-wrapper .hc-timeline-item {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    padding-left: 20px !important;
    list-style: none !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
}

#harvest-calculator-wrapper .hc-timeline-item::before {
    content: '' !important;
    position: absolute !important;
    left: 35px !important;
    top: 40px !important;
    bottom: -30px !important;
    width: 2px !important;
    background: #D4C3A1 !important;
    z-index: 1 !important;
}

#harvest-calculator-wrapper .hc-timeline-item:last-child::before {
    display: none !important;
}

#harvest-calculator-wrapper .hc-timeline-badge {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #F3F4F6 !important;
    color: #6B7280 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-right: 20px !important;
    z-index: 2 !important;
    position: relative !important;
    border: 1px solid #E5E7EB !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

#harvest-calculator-wrapper .hc-timeline-item.capital-return .hc-timeline-badge {
    background: #0B1C34 !important;
    color: #ffffff !important;
    border-color: #0B1C34 !important;
}

#harvest-calculator-wrapper .hc-timeline-item.profit-share .hc-timeline-badge {
    background: #DFF7ED !important;
    color: #10B981 !important;
    border-color: #10B981 !important;
}

#harvest-calculator-wrapper .hc-timeline-content {
    flex: 1 !important;
    display: block !important;
    min-width: 0 !important;
}

#harvest-calculator-wrapper .hc-timeline-amount {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0B1C34 !important;
    margin-bottom: 2px !important;
    display: block !important;
}

#harvest-calculator-wrapper .hc-timeline-date {
    font-size: 13px !important;
    color: #6B7280 !important;
    display: block !important;
}

#harvest-calculator-wrapper .hc-timeline-tag {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    margin-left: 8px !important;
    text-transform: uppercase !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
}

#harvest-calculator-wrapper .tag-monthly {
    background: #EBF5FF !important;
    color: #1E40AF !important;
}

#harvest-calculator-wrapper .tag-bonus {
    background: #FDF2F8 !important;
    color: #9D174D !important;
}

#harvest-calculator-wrapper .tag-capital {
    background: #FEF3C7 !important;
    color: #92400E !important;
}

/* Error Message */
#harvest-calculator-wrapper .hc-error {
    background: #fbeee0 !important;
    color: #c43c3c !important;
    padding: 1rem !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin-top: 1rem !important;
    line-height: 1.5 !important;
    border: 1px solid rgba(196, 60, 60, 0.2) !important;
    display: none !important;
}

#harvest-calculator-wrapper .hc-error.hc-error-visible {
    display: block !important;
}

/* Disclaimers */
#harvest-calculator-wrapper .hc-disclaimer {
    margin-top: 30px !important;
    font-size: 12px !important;
    color: #6B7280 !important;
    line-height: 1.6 !important;
    background: #F9FAFB !important;
    padding: 20px !important;
    border-radius: 12px !important;
    border: 1px solid #E5E7EB !important;
    display: block !important;
}

#harvest-calculator-wrapper .hc-disclaimer-title {
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    color: #0B1C34 !important;
}

#harvest-calculator-wrapper .hc-disclaimer-text {
    margin: 0 !important;
}

/* Responsive */
@media (max-width: 600px) {
    #harvest-calculator-wrapper.harvest-calculator {
        padding: 24px 16px !important;
    }

    #harvest-calculator-wrapper .hc-term-toggle label {
        font-size: 0.75rem !important;
        padding: 10px 0 !important;
    }

    #harvest-calculator-wrapper .hc-term-toggle label span.hc-series-tag {
        font-size: 9px !important;
    }

    #harvest-calculator-wrapper .hc-card-content {
        padding: 16px !important;
    }

    #harvest-calculator-wrapper .hc-card-rate {
        font-size: 17px !important;
    }

    #harvest-calculator-wrapper .hc-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

    #harvest-calculator-wrapper .hc-results-card {
        padding: 24px !important;
    }

    #harvest-calculator-wrapper .hc-total-value {
        font-size: 32px !important;
    }
}

/* Responsive Tablet & Desktop - Two-column Grid */
@media (min-width: 900px) {
    #harvest-calculator-wrapper.harvest-calculator {
        max-width: 1100px !important;
        padding: 40px 45px !important;
    }

    #harvest-calculator-wrapper .hc-main-layout {
        display: grid !important;
        grid-template-columns: 1.05fr 0.95fr !important;
        gap: 45px !important;
        align-items: start !important;
    }

    #harvest-calculator-wrapper .hc-title {
        text-align: left !important;
        font-size: 38px !important;
    }

    #harvest-calculator-wrapper .hc-subtitle {
        text-align: left !important;
        margin-bottom: 30px !important;
    }

    #harvest-calculator-wrapper .hc-row {
        margin-bottom: 0 !important;
    }

    #harvest-calculator-wrapper .hc-disclaimer {
        margin-top: 20px !important;
        grid-column: span 2 !important;
    }
}

/* Hide helper class */
#harvest-calculator-wrapper .hc-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}