/* Remortgage Calculator Specific Styles */

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

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #204080 0%, #3366cc 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(32, 64, 128, 0.2);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

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

.page-header .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-width: 150px;
}

.feature i {
    font-size: 2rem;
    color: #ff6b35;
    margin-bottom: 10px;
}

.feature span {
    font-weight: 600;
    font-size: 1.1rem;
}

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

/* Card Styles */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-header {
    background: linear-gradient(135deg, #204080 0%, #3366cc 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-header h2 i {
    color: #ff6b35;
    margin-right: 10px;
}

.card-header p {
    opacity: 0.9;
    margin: 0;
}

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

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

.form-section h3 {
    color: #204080;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.form-section h3 i {
    color: #ff6b35;
    margin-right: 10px;
}

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

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

.input-label.required::after {
    content: " *";
    color: #dc3545;
}

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

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

.percentage-symbol {
    position: absolute;
    right: 15px;
    color: #666;
    font-weight: 600;
    z-index: 2;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

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

.input-field[type="number"] {
    padding-left: 45px;
}

.input-field[type="number"]:has(+ .percentage-symbol) {
    padding-right: 45px;
    padding-left: 20px;
}

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

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #204080;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background: #204080;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.calculate-button {
    background: linear-gradient(135deg, #204080 0%, #3366cc 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    min-height: 50px;
}

.calculate-button:hover,
.calculate-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(32, 64, 128, 0.3);
    outline: none;
}

.calculate-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.reset-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-height: 50px;
}

.reset-button:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Results Section */
.calculator-results {
    margin-top: 40px;
}

.results-content {
    padding: 40px;
}

.savings-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.saving-item {
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

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

.saving-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.8;
}

.saving-value {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
}

.saving-item.primary .saving-value {
    color: #fff;
}

/* Comparison Table */
.comparison-table {
    margin-bottom: 40px;
}

.comparison-table h3 {
    color: #204080;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

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

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Cost Breakdown */
.cost-breakdown {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.cost-breakdown h3 {
    color: #204080;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #204080;
    border-top: 2px solid #204080;
    margin-top: 15px;
    padding-top: 15px;
}

.breakdown-item.breakeven {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
    color: #204080;
}

/* Recommendation */
.recommendation {
    margin-bottom: 30px;
}

.recommendation h3 {
    color: #204080;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.recommendation-positive {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.recommendation-neutral {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.recommendation-negative {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.recommendation i {
    font-size: 1.5rem;
}

/* Next Steps */
.next-steps h3 {
    color: #204080;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

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

.action-button i {
    color: #ff6b35;
}

.action-button:hover i {
    color: #fff;
}

/* Information Section */
.info-section {
    margin: 60px 0;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.col-md-6 {
    /* Grid item */
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.info-card h3 {
    color: #204080;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.info-card h3 i {
    color: #ff6b35;
    margin-right: 12px;
    font-size: 1.2rem;
}

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

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

.info-card li::before {
    content: "•";
    color: #204080;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.info-card strong {
    color: #204080;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
}

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

.faq-header h2 {
    color: #204080;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.faq-header h2 i {
    color: #ff6b35;
    margin-right: 15px;
}

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

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

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h3 {
    color: #204080;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

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

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

.faq-item.active .faq-answer {
    padding: 25px 30px;
}

.faq-answer p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

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

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

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

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 12px;
    color: #666;
    font-weight: 500;
}

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

.breadcrumb a:hover {
    color: #ff6b35;
}

.breadcrumb li:last-child {
    color: #666;
    font-weight: 500;
}

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

    .savings-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

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

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .lead {
        font-size: 1.1rem;
    }

    .key-features {
        gap: 20px;
    }

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

    .calculator-form-inner,
    .results-content {
        padding: 25px;
    }

    .card-header {
        padding: 25px;
    }

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

    .action-buttons {
        flex-direction: column;
    }

    .action-button {
        min-width: auto;
    }

    .faq-question,
    .faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .info-card {
        padding: 25px;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table table {
        min-width: 500px;
    }
}

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

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

    .card-header {
        padding: 20px;
    }

    .saving-value {
        font-size: 1.5rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}
