/* Overpayment Calculator Index Page Styles */

/* Header Design - Consistent with homepage */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 70px;
}

.logo a {
    font-size: 26px;
    font-weight: 700;
    color: #204080;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 18px;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #204080;
    background: rgba(32, 64, 128, 0.08);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 250px;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #333;
    font-size: 15px;
    border-radius: 8px;
    margin: 2px 0;
}

.dropdown-menu a:hover {
    background: rgba(32, 64, 128, 0.08);
    color: #204080;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #204080;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #204080;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Footer Design - Consistent with homepage */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 25px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #204080;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #204080;
}

/* Calculator Page Specific Styles */
.calculator-page {
    background: #f8f9fa;
    min-height: calc(100vh - 140px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-header {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.page-header h1 i {
    color: #204080;
}

.page-header .lead {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.key-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #333;
}

.feature i {
    color: #204080;
    font-size: 32px;
}

.feature span {
    font-weight: 600;
    font-size: 16px;
}

/* Calculator Layout */
.calculator-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h2 i {
    color: #204080;
}

.card-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Form Styles */
.calculator-form-inner {
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section h3 i {
    color: #204080;
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.input-label.required::after {
    content: ' *';
    color: #e74c3c;
}

.input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    color: #666;
    font-weight: 600;
    z-index: 1;
}

.percentage-symbol {
    position: absolute;
    right: 16px;
    color: #666;
    font-weight: 600;
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
}

.input-with-symbol .input-field {
    padding-left: 45px;
}

.input-with-symbol .input-field:has(+ .percentage-symbol) {
    padding-right: 45px;
    padding-left: 20px;
}

.input-field:focus {
    outline: none;
    border-color: #204080;
    box-shadow: 0 0 0 3px rgba(32, 64, 128, 0.1);
}

.input-field[readonly] {
    background: #f8f9fa;
    color: #666;
}

.help-text {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

/* Button Styles */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.calculate-button,
.reset-button {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.calculate-button {
    background: #204080;
    color: white;
    box-shadow: 0 4px 15px rgba(32, 64, 128, 0.3);
}

.calculate-button:hover {
    background: #1a3366;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(32, 64, 128, 0.4);
}

.reset-button {
    background: transparent;
    color: #204080;
    border: 2px solid #204080;
}

.reset-button:hover {
    background: #204080;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 25px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 16px 0;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: #f8f9fa;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        transform: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .calculator-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .key-features {
        gap: 24px;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* Results Section Styles */
.results-content {
    padding: 32px;
}

.results-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.placeholder-content {
    max-width: 300px;
    margin: 0 auto;
}

.placeholder-icon {
    font-size: 48px;
    color: #204080;
    margin-bottom: 20px;
    opacity: 0.6;
}

.placeholder-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.placeholder-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.savings-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.saving-item {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 2px solid rgba(32, 64, 128, 0.1);
}

.saving-item.primary {
    background: linear-gradient(135deg, #204080 0%, #1a3366 100%);
    color: white;
    border-color: #204080;
}

.saving-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.8;
}

.saving-item.primary .saving-label {
    opacity: 0.9;
}

.saving-value {
    font-size: 32px;
    font-weight: 700;
    color: #204080;
}

.saving-item.primary .saving-value {
    color: white;
}

.comparison-table {
    margin-bottom: 32px;
}

.comparison-table h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.comparison-table .positive {
    color: #27ae60;
    font-weight: 600;
}

/* Info Section Styles */
.info-section {
    padding: 60px 0;
    background: white;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.info-card {
    background: #f8f9ff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(32, 64, 128, 0.1);
}

.info-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card h3 i {
    color: #204080;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    margin-bottom: 16px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.info-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: white;
    color: #204080;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid #204080;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.action-button:hover {
    background: #204080;
    color: white;
    transform: translateY(-2px);
}

/* FAQ Section Styles */
.faq-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.faq-header h2 i {
    color: #204080;
}

.faq-header p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: rgba(32, 64, 128, 0.02);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.faq-question i {
    color: #204080;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
