/* Repayment Calculator Main Styles */

/* Page Layout */
.calculator-page {
    padding: 40px 0 80px;
    background: #f8f9fa;
    min-height: calc(100vh - 140px);
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(32, 64, 128, 0.05) 0%, transparent 50%);
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.page-header h1 i {
    color: #204080;
    margin-right: 15px;
}

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

/* Key Features */
.key-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 30px 25px;
    border-radius: 15px;
    min-width: 180px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.feature span {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.feature small {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Calculator Options */
.calculator-options {
    margin: 60px 0;
}

.calculator-options h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 50px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.option-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #204080, #1a3366);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.option-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.option-card:hover::before {
    transform: scaleX(1);
}

.option-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #204080, #1a3366);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.option-card:hover .option-icon {
    transform: scale(1.1);
}

.option-icon i {
    font-size: 32px;
    color: white;
}

.option-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.option-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.option-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.option-features span {
    background: #f8f9ff;
    color: #204080;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(32, 64, 128, 0.2);
}

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

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

.card-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    padding: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

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

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.breadcrumb li {
    font-size: 14px;
    color: #666;
}

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

.breadcrumb a {
    color: #204080;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #1a3366;
}

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

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

.form-section:last-of-type {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

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

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

.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;
}

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

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

.currency-symbol,
.percentage-symbol,
.unit-symbol {
    position: absolute;
    font-weight: 600;
    color: #666;
    pointer-events: none;
}

.currency-symbol {
    left: 16px;
}

.percentage-symbol,
.unit-symbol {
    right: 16px;
}

.input-with-symbol .currency-symbol + .input-field {
    padding-left: 40px;
}

.help-text {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-text i {
    color: #204080;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, #204080 0%, #1a3366 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(32, 64, 128, 0.3);
}

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

.calculate-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
        margin-bottom: 40px;
    }

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

    .page-header .lead {
        font-size: 18px;
    }

    .key-features {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .feature {
        min-width: 250px;
    }

    .calculator-options h2 {
        font-size: 28px;
    }

    .option-card {
        padding: 30px 20px;
    }

    .card-header {
        padding: 20px;
    }

    .calculator-form-inner {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }

    .page-header .lead {
        font-size: 16px;
    }

    .feature {
        min-width: 200px;
        padding: 20px 15px;
    }

    .option-card {
        padding: 25px 15px;
    }

    .option-icon {
        width: 60px;
        height: 60px;
    }

    .option-icon i {
        font-size: 24px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header,
.calculator-options,
.calculator-layout {
    animation: fadeInUp 0.6s ease-out;
}

.option-card:nth-child(1) {
    animation-delay: 0.1s;
}

.option-card:nth-child(2) {
    animation-delay: 0.2s;
}

.option-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Info Section Styles */
.info-section {
    margin: 60px 0;
    padding: 50px 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.info-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.info-section h2 i {
    color: #204080;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 30px;
}

.info-card {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(32, 64, 128, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(32, 64, 128, 0.15);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: #204080;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-icon i {
    font-size: 24px;
    color: white;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* Repayment Types */
.repayment-types {
    margin: 60px 0;
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 20px;
}

.repayment-types h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.repayment-types h2 i {
    color: #204080;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    padding: 0 30px;
}

.type-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.type-header {
    background: linear-gradient(135deg, #204080, #1a3366);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.type-header i {
    font-size: 24px;
}

.type-header h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.type-content {
    padding: 25px;
}

.type-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pros h4,
.cons h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.pros h4 {
    color: #28a745;
}

.cons h4 {
    color: #dc3545;
}

.pros ul,
.cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros li,
.cons li {
    padding: 5px 0;
    font-size: 14px;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.pros li:before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.cons li:before {
    content: '!';
    color: #dc3545;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Factors Section */
.factors-section {
    margin: 60px 0;
    padding: 50px 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.factors-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.factors-section h2 i {
    color: #204080;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 30px;
}

.factor-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: #f8f9ff;
    border: 1px solid rgba(32, 64, 128, 0.1);
    transition: all 0.3s ease;
}

.factor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(32, 64, 128, 0.15);
}

.factor-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #204080, #1a3366);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.factor-icon i {
    font-size: 24px;
    color: white;
}

.factor-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.factor-item p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
    padding: 50px 0;
    background: #f8f9fa;
    border-radius: 20px;
}

.faq-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

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

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

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

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

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

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

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 25px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
}
