/* =======================================================================
   Redundancy Pay Calculator Ireland — calculator-specific layout only
   Output UI uses shared ic-base.css result micro-components where possible.
   ======================================================================= */

.ic-redundancycalc {
    max-width: 1180px !important;
    margin: 0 auto;
}

.ic-redundancycalc .ic-rd-form-shell {
    padding: var(--ic-padding);
    background: var(--ic-surface);
    display: flex;
    flex-direction: column;
    gap: var(--ic-section-gap);
}

.ic-redundancycalc .ic-field-row {
    display: grid;
    gap: 14px;
}

.ic-redundancycalc .ic-rd-field-row--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ic-redundancycalc .ic-rd-field-row--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ic-redundancycalc .ic-rd-advanced-toggle-wrap {
    margin-top: 2px;
}

.ic-redundancycalc .ic-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ic-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ic-redundancycalc .ic-advanced-toggle svg {
    transition: transform .18s ease;
}

.ic-redundancycalc .ic-advanced-toggle.is-open svg {
    transform: rotate(180deg);
}

.ic-redundancycalc .ic-rd-advanced-panel {
    margin-top: -4px;
    padding: 16px;
    border: 1px solid var(--ic-border);
    border-radius: var(--ic-radius);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,247,.98));
}

.ic-redundancycalc .ic-rd-advanced-panel--hidden {
    display: none;
}

.ic-redundancycalc .ic-rd-advanced-panel .ic-field-hint {
    margin-top: 6px;
}

.ic-redundancycalc .ic-inline-note {
    margin-top: 2px;
    padding: 12px 14px;
    border: 1px solid var(--ic-border);
    border-left: 3px solid var(--ic-primary);
    border-radius: var(--ic-radius-sm);
    background: var(--ic-muted);
    color: var(--ic-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ic-redundancycalc .ic-rd-results {
    border-left: 0 !important;
    border-top: 1px solid var(--ic-border);
    min-height: 320px;
}

.ic-redundancycalc .ic-results-empty {
    min-height: 280px;
}

.ic-redundancycalc .ic-rd-result-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ic-redundancycalc .ic-rd-hero {
    margin: 0 0 14px;
}

.ic-redundancycalc .ic-rd-hero--not-eligible {
    background: var(--ic-warn);
}

.ic-redundancycalc .ic-rd-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.ic-redundancycalc .ic-breakdown {
    margin-bottom: 0;
}

.ic-redundancycalc .ic-note-grid {
    margin-top: 14px;
}

.ic-redundancycalc .ic-rd-check-row {
    align-items: center;
    gap: 18px;
}

.ic-redundancycalc .ic-rd-check-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ic-redundancycalc .ic-rd-check-text strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--ic-text);
}

.ic-redundancycalc .ic-rd-check-text small {
    font-size: 12px;
    line-height: 1.4;
    color: var(--ic-text-muted);
}

.ic-redundancycalc .ic-rd-warning {
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid rgba(217,119,6,.22);
    border-left: 3px solid var(--ic-warn);
    border-radius: var(--ic-radius);
    background: rgba(217,119,6,.07);
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
}

.ic-redundancycalc .ic-rd-warning strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.ic-redundancycalc .ic-rd-warning ul {
    margin: 0;
    padding-left: 18px;
}

.ic-redundancycalc .ic-rd-warning li {
    margin: 4px 0;
}

.ic-redundancycalc .ic-stagger > * {
    opacity: 0;
    animation: ic-baseFadeIn .25s ease-out forwards;
}
.ic-redundancycalc .ic-stagger > *:nth-child(1) { animation-delay: 0ms; }
.ic-redundancycalc .ic-stagger > *:nth-child(2) { animation-delay: 45ms; }
.ic-redundancycalc .ic-stagger > *:nth-child(3) { animation-delay: 90ms; }
.ic-redundancycalc .ic-stagger > *:nth-child(4) { animation-delay: 135ms; }
.ic-redundancycalc .ic-stagger > *:nth-child(5) { animation-delay: 180ms; }
.ic-redundancycalc .ic-stagger > *:nth-child(6) { animation-delay: 225ms; }
.ic-redundancycalc .ic-stagger > *:nth-child(7) { animation-delay: 270ms; }

@media (max-width: 1024px) {
    .ic-redundancycalc .ic-rd-field-row--three,
    .ic-redundancycalc .ic-rd-field-row--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ic-redundancycalc .ic-rd-form-shell { padding: 20px 16px; }
    .ic-redundancycalc .ic-rd-field-row--three,
    .ic-redundancycalc .ic-rd-field-row--two,
    .ic-redundancycalc .ic-rd-two-col { grid-template-columns: 1fr; }
    .ic-redundancycalc .ic-rd-check-row { align-items: flex-start; }
}


/* Match the newer calculator action-row behaviour: wide calculate + compact reset */
.ic-redundancycalc .ic-rd-field-row--actions-main {
    display: block !important;
}

.ic-redundancycalc .ic-rd-actions-main {
    display: flex !important;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin: 0 !important;
}

.ic-redundancycalc .ic-rd-actions-main .ic-calc-btn {
    flex: 1 1 auto;
    min-height: var(--ic-input-height);
    height: var(--ic-input-height);
    margin: 0;
}

.ic-redundancycalc .ic-rd-actions-main .ic-reset-btn {
    flex: 0 0 auto;
    min-height: var(--ic-input-height);
    height: var(--ic-input-height);
    margin: 0;
    padding-left: 18px;
    padding-right: 18px;
}

@media (max-width: 520px) {
    .ic-redundancycalc .ic-rd-actions-main {
        flex-direction: column;
    }
    .ic-redundancycalc .ic-rd-actions-main .ic-calc-btn,
    .ic-redundancycalc .ic-rd-actions-main .ic-reset-btn {
        width: 100% !important;
        flex: none;
    }
}
