/* Complete Retirement Planner Stylesheet */
.retire-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.retire-container {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 320px; /* Locked narrow for AdSense space */
    box-sizing: border-box;
}

.retire-container h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #1e3a8a; /* Corporate Navy */
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.retire-input-group {
    margin-bottom: 16px;
    text-align: left;
}

.retire-row {
    display: flex;
    gap: 8px;
}

.retire-half, .retire-third {
    flex: 1;
    min-width: 0;
}

.retire-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.retire-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.retire-input-group input {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 0.95rem;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

/* Full Width Text Alignment */
.retire-input-wrapper input {
    padding-left: 12px; 
    padding-right: 28px;
    text-align: left;
}

/* Specific Currency Inputs */
#retireExpense, #retireSavings, #retireMonthlyInv {
    padding-left: 28px;
}

/* Compact Grid Styling */
.retire-half .retire-input-wrapper input,
.retire-third .retire-input-wrapper input {
    padding-left: 8px;
    padding-right: 8px; 
    text-align: center;
}

.retire-currency {
    position: absolute;
    left: 10px;
    font-weight: 600;
    color: #64748b;
}

.retire-symbol {
    position: absolute;
    right: 12px;
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
}

.retire-note {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
}

.retire-input-group input:focus {
    outline: none;
    border-color: #d97706; /* Golden Focus */
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
    background: #ffffff;
}

.retire-btn {
    width: 100%;
    background: #1e3a8a; 
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 5px;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.3);
}

.retire-btn:hover {
    background: #1e40af;
}

.retire-result-box {
    margin-top: 24px;
    padding: 20px 15px;
    border-radius: 8px;
    text-align: center;
    background: #f8fafc; 
    border: 1px solid #e2e8f0;
    display: none; 
}

.retire-result-box h3 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.05em;
}

.retire-result-main {
    margin: 8px 0 15px 0;
    font-size: 2rem;
    font-weight: 900;
    color: #1e3a8a; 
}

.retire-breakdown {
    border-top: 1px solid #cbd5e1;
    padding-top: 15px;
    text-align: left;
    font-size: 0.85rem;
    color: #334155;
}

.retire-breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.retire-status-box {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.retire-status-box h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    font-weight: 800;
}

.retire-status-box p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.retire-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.retire-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}