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

/* ═══════════════════════════════════════════════════════════════
           HARVEST CALCULATOR CONTAINER
           ═══════════════════════════════════════════════════════════════ */
        #harvest-calculator-wrapper {
            background: #ffffff;
            border-radius: 24px;
            max-width: 1080px;
            width: 100%;
            padding: 45px 50px;
            box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(212, 195, 161, 0.4);
            margin: 0 auto;
            position: relative;
        }

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

        /* Header */
        #harvest-calculator-wrapper .hc-header {
            text-align: left;
            margin-bottom: 30px;
        }

        #harvest-calculator-wrapper .hc-title {
            font-size: 36px;
            font-weight: 700;
            color: #0B1C34;
            margin: 0 0 8px 0;
            line-height: 1.2;
        }

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

        #harvest-calculator-wrapper .hc-subtitle {
            font-size: 15px;
            color: #4B5563;
            margin: 0;
            line-height: 1.5;
        }

        /* Two-Column Grid Layout */
        #harvest-calculator-wrapper .hc-main-layout {
            display: grid;
            grid-template-columns: 1.05fr 0.95fr;
            gap: 45px;
            align-items: start;
        }

        #harvest-calculator-wrapper .hc-column {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

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

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

        /* ── Term Toggle ── */
        #harvest-calculator-wrapper .hc-term-toggle {
            display: flex;
            background: #F3F4F6;
            border-radius: 14px;
            padding: 4px;
            position: relative;
            border: 1px solid #E5E7EB;
        }

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

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

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

        #harvest-calculator-wrapper .hc-term-toggle label span.hc-term-months {
            font-size: 13px;
            font-weight: 700;
            color: #6B7280;
            transition: color 0.25s ease;
        }

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

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

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

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

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

        /* ── Term Info Box ── */
        #harvest-calculator-wrapper .hc-term-info-box {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 16px 20px;
            border: 1px solid rgba(212, 195, 161, 0.45);
            background: #F9FAFB;
            width: 100%;
            border-radius: 12px;
            text-align: center;
        }

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

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

        #harvest-calculator-wrapper .hc-info-value {
            font-size: 17px;
            font-weight: 700;
            color: #0B1C34;
            line-height: 1.2;
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        /* ── Inputs Row ── */
        #harvest-calculator-wrapper .hc-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 18px;
            margin-top: 5px;
            width: 100%;
        }

        #harvest-calculator-wrapper .hc-input-group {
            display: block;
        }

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

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

        #harvest-calculator-wrapper .hc-input-icon {
            color: #0B1C34;
            font-size: 16px;
            margin-right: 8px;
            font-weight: 600;
        }

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

        #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;
            margin: 0;
        }

        #harvest-calculator-wrapper .hc-input-wrap input[type=number] {
            -moz-appearance: textfield;
        }

        #harvest-calculator-wrapper .hc-input-wrap input[type="date"] {
            color: #0B1C34;
            cursor: pointer;
            font-size: 15px;
        }

        /* ── Results Card ── */
        #harvest-calculator-wrapper .hc-results-card {
            background: #ffffff;
            border-radius: 24px;
            padding: 35px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(212, 195, 161, 0.35);
            display: block;
        }

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

        #harvest-calculator-wrapper .hc-total-label {
            font-size: 12px;
            font-weight: 700;
            color: #6B7280;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
            text-transform: uppercase;
        }

        #harvest-calculator-wrapper .hc-total-value {
            font-size: 44px;
            font-weight: 800;
            color: #0B1C34;
            line-height: 1.1;
        }

        #harvest-calculator-wrapper .hc-rate-badge {
            background: #DFF7ED;
            color: #10B981;
            font-size: 13px;
            font-weight: 700;
            padding: 4px 14px;
            border-radius: 20px;
            white-space: nowrap;
            display: inline-block;
            margin-top: 8px;
            align-self: flex-start;
        }

        #harvest-calculator-wrapper .hc-divider {
            border: 0;
            height: 1px;
            background: rgba(212, 195, 161, 0.35);
            margin: 22px 0;
            display: block;
        }

        #harvest-calculator-wrapper .hc-schedule-header {
            font-size: 12px;
            font-weight: 700;
            color: #6B7280;
            letter-spacing: 0.5px;
            margin-bottom: 20px;
            display: block;
            text-transform: uppercase;
        }

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

        #harvest-calculator-wrapper .hc-schedule-timeline::-webkit-scrollbar {
            width: 5px;
        }

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

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

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

        #harvest-calculator-wrapper .hc-timeline-item::before {
            content: '';
            position: absolute;
            left: 26px;
            top: 32px;
            bottom: -22px;
            width: 2px;
            background: #D4C3A1;
            z-index: 1;
        }

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

        #harvest-calculator-wrapper .hc-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: 16px;
            z-index: 2;
            position: relative;
            border: 1px solid #E5E7EB;
            flex-shrink: 0;
            line-height: 1;
        }

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

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

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

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

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

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

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

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

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

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

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

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

        /* Responsive Breakpoints */
        @media (max-width: 899px) {
            #harvest-calculator-wrapper {
                padding: 30px 20px;
            }

            #harvest-calculator-wrapper .hc-main-layout {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            #harvest-calculator-wrapper .hc-title {
                font-size: 28px;
            }

            #harvest-calculator-wrapper .hc-row {
                grid-template-columns: 1fr;
                gap: 15px;
            }

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