/* Fixed Deposit Calculator Stylesheet */
.fd-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.fd-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;
}

.fd-container h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #4a0404; /* Banking Maroon */
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.fd-input-group {
    margin-bottom: 16px;
    text-align: left;
}

.fd-row {
    display: flex;
    gap: 6px; /* Tightened gap for 3 columns */
}

.fd-third {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.fd-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem; /* Slightly smaller to fit 3 labels */
    font-weight: 600;
    color: #334155;
}

.fd-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fd-input-group input,
.fd-input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

/* Adjust padding for the smaller grid inputs */
.fd-third input {
    padding: 10px 8px;
    text-align: center;
}

.fd-input-wrapper input {
    padding-left: 30px; 
}

.fd-input-wrapper #fdRate {
    padding-left: 12px;
    padding-right: 35px; 
}

.fd-currency, .fd-symbol {
    position: absolute;
    font-weight: 600;
    color: #64748b;
}

.fd-currency { left: 12px; }
.fd-symbol { right: 12px; }

.fd-input-group input:focus,
.fd-input-group select:focus {
    outline: none;
    border-color: #991b1b; /* Maroon */
    box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.2);
    background: #ffffff;
}

.fd-btn {
    width: 100%;
    background: #991b1b; /* Banking Maroon */
    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(153, 27, 27, 0.3);
}

.fd-btn:hover {
    background: #7f1d1d;
}

.fd-result-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #fef2f2; 
    border: 1px solid #fecaca;
    display: none; 
}

.fd-result-box h3 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #991b1b;
    letter-spacing: 0.05em;
}

.fd-result-main {
    margin: 10px 0 15px 0;
    font-size: 2.1rem;
    font-weight: 900;
    color: #7f1d1d;
}

.fd-breakdown {
    border-top: 1px solid #fca5a5;
    padding-top: 15px;
    text-align: left;
    font-size: 0.9rem;
    color: #7f1d1d;
}

.fd-breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.fd-breakdown-row:last-child {
    margin-bottom: 0;
}

.fd-highlight {
    color: #991b1b;
    font-weight: 800;
}