/* Geva Retirement Planner Pro - Frontend Styles */

.grp-wrap {
    direction: rtl;
    text-align: right;
    font-family: -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    max-width: 960px;
    margin: 0 auto;
    color: #222;
    line-height: 1.6;
}

.grp-disclaimer {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 24px;
}

.grp-disclaimer-small {
    margin-top: 30px;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.grp-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1565c0;
    color: #0d47a1;
}

.grp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 10px;
}

.grp-field {
    display: flex;
    flex-direction: column;
}

.grp-field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #444;
}

.grp-field input[type="number"],
.grp-field input[type="text"],
.grp-field input[type="email"],
.grp-field select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.grp-checkbox-field label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.grp-checkbox-field input {
    width: 18px;
    height: 18px;
}

.grp-actions {
    margin: 24px 0;
    text-align: center;
}

.grp-btn-primary,
.grp-btn-secondary {
    border: none;
    border-radius: 8px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.2s ease;
}

.grp-btn-primary {
    background: linear-gradient(90deg, #1565c0, #0d47a1);
    color: #fff;
}

.grp-btn-secondary {
    background: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #90caf9;
}

.grp-btn-primary:hover,
.grp-btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.grp-loading {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #0d47a1;
    padding: 30px;
}

.grp-results {
    margin-top: 30px;
    border-top: 4px solid #1565c0;
    padding-top: 10px;
}

/* Score circle */
.grp-score-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-bottom: 10px;
}

.grp-score-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 10px solid #1565c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #0d47a1;
    flex-shrink: 0;
}

.grp-score-deductions {
    flex: 1;
    min-width: 220px;
}

.grp-score-deductions ul {
    margin: 0;
    padding-right: 18px;
}

.grp-score-deductions li {
    font-size: 14px;
    margin-bottom: 4px;
}

/* Tables */
.grp-table-wrap {
    overflow-x: auto;
    margin-bottom: 10px;
}

.grp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.grp-table th,
.grp-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: center;
}

.grp-table th {
    background: #1565c0;
    color: #fff;
    font-weight: 700;
}

.grp-table tbody tr:nth-child(even) {
    background: #f5f9ff;
}

.grp-table td.grp-label-cell {
    text-align: right;
    font-weight: 600;
    background: #fafafa;
}

.grp-positive {
    color: #2e7d32;
    font-weight: 700;
}

.grp-negative {
    color: #c62828;
    font-weight: 700;
}

/* Opportunities */
.grp-opportunities {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grp-opportunity-card {
    background: #f0f7ff;
    border: 1px solid #bbdefb;
    border-radius: 10px;
    padding: 16px;
}

.grp-opportunity-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #0d47a1;
}

.grp-opportunity-card .grp-potential {
    margin-top: 10px;
    font-weight: 700;
    color: #1565c0;
}

.grp-opportunity-card .grp-basis {
    margin-top: 8px;
    font-size: 12px;
    color: #777;
}

/* Charts */
.grp-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.grp-chart-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px;
    height: 320px;
}

@media (max-width: 600px) {
    .grp-score-circle {
        width: 100px;
        height: 100px;
        font-size: 26px;
    }
}
