/* ── Tariff Refund Calculator — Scoped Styles ─────────────────────────────── */

.trc-wrapper {
    --trc-accent: #c8102e;
    --trc-bg: #1f2937;
    /* Dark grayish blue from image */
    --trc-navy: #111827;
    --trc-white: #ffffff;
    --trc-gray: #e8eaed;
    --trc-muted: rgba(255, 255, 255, 0.5);
    --trc-text: rgba(255, 255, 255, 0.88);
    --trc-radius: 10px;
    --trc-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --trc-blue: #3b82f6;

    font-family: var(--trc-font);
    background: var(--trc-bg);
    border-radius: 16px;
    padding: 40px;
    /* max-width: 600px; */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Box wrapper */
.trc-box {
    /* Optional: If we want an inner card. Let's just keep it transparent to merge with wrapper */
    background: transparent;
    font-family: var(--trc-font);
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    padding: 45px;
}

/* Step Header */
.trc-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.trc-step-eyebrow {
    color: var(--trc-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Progress Indicator */
.trc-progress {
    display: flex;
    gap: 6px;
}

.trc-progress-bar {
    width: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.trc-progress-active {
    background: var(--trc-blue);
}

/* Titles & Subtitles */
.trc-step-title-wrap {
    margin-bottom: 28px;
}

.trc-text-center {
    text-align: center;
}

.trc-title {
    font-family: var(--trc-font);
    font-size: clamp(22px, 3.5vw, 28px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.trc-subtitle {
    font-size: 15px;
    color: var(--trc-muted);
    margin: 0;
    line-height: 1.6;
}

.trc-micro-text {
    font-size: 14px;
    color: var(--trc-blue);
    margin: 8px 0 0 0;
}

/* Grid */
.trc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-bottom: 20px;
}

@media (max-width: 500px) {
    .trc-wrapper {
        padding: 32px 24px;
    }

    .trc-grid {
        grid-template-columns: 1fr;
    }
}

/* Labels */
.trc-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

/* Inputs */
.trc-field {
    margin-bottom: 20px;
}

.trc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.trc-prefix-icon,
.trc-suffix-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.trc-prefix-icon {
    left: 16px;
}

.trc-suffix-icon {
    right: 16px;
}

.trc-input {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--trc-radius);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--trc-font);
    padding: 0 16px;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.trc-prefix .trc-input {
    padding-left: 32px;
}

.trc-suffix .trc-input {
    padding-right: 36px;
}

.trc-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.trc-input:focus {
    outline: none;
    border-color: var(--trc-blue);
    background: rgba(255, 255, 255, 0.08);
}

/* Select specific */
select.trc-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select.trc-input option {
    background: var(--trc-navy);
    color: #fff;
}

/* Date inputs */
input[type="date"].trc-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
    cursor: pointer;
}

/* Error state */
.trc-input.trc-has-error {
    border-color: var(--trc-accent) !important;
}

.trc-error {
    display: none;
    font-size: 12px;
    color: #ff8097;
    margin-top: 6px;
}

/* Button */
.trc-btn {
    display: block;
    width: 100%;
    height: 54px;
    background: var(--trc-accent);
    color: #fff;
    border: none;
    border-radius: var(--trc-radius);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--trc-font);
    cursor: pointer;
    transition: background .2s, transform .15s;
    margin-top: 12px;
}

.trc-btn:hover {
    filter: brightness(0.88);
    transform: translateY(-1px);
}

.trc-btn:active {
    transform: translateY(0);
}

/* Links and text below buttons */
.trc-back-link-wrap {
    text-align: center;
    margin-top: 16px;
}

.trc-prev-btn,
.trc-reset-btn {
    color: var(--trc-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.trc-prev-btn:hover,
.trc-reset-btn:hover {
    color: #fff;
    text-decoration: underline;
}

.trc-disclaimer {
    font-size: 13px;
    color: var(--trc-muted);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

/* Result strip */
.trc-result {
    background: rgba(200, 16, 46, 0.08);
    border: 1px solid rgba(200, 16, 46, 0.25);
    border-radius: var(--trc-radius);
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.trc-result-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.trc-result-right {
    text-align: right;
}

.trc-result-amount {
    font-family: var(--trc-font);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--trc-accent);
    line-height: 1;
    margin-bottom: 6px;
}

.trc-breakdown {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    justify-content: flex-end;
}

.trc-breakdown strong {
    color: rgba(255, 255, 255, 0.8);
}

/* Animation */
.trc-step {
    animation: trc-fade-in 0.3s ease-out;
}

@keyframes trc-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}