/* Mortgage Calculator Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.calculator-container {
    padding: 2rem 0;
    flex: 1;
}

/* Center content on large screens */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .calculator-container {
        display: flex;
        justify-content: center;
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: "Outfit", Arial, sans-serif;
    color: #333;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: "Outfit", Arial, sans-serif;
    color: #666;
}

.get-pre-qualified-btn {
    padding: 0.75rem 1.5rem;
    background-color: #ff5a5f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-family: "Outfit", Arial, sans-serif;
}

.get-pre-qualified-btn:hover {
    background-color: #e04e52;
}

/* Calculator Form */
.calculator-form {
    margin-bottom: 2rem;
}

.calculator-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: "Outfit", Arial, sans-serif;
}

.form-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: "Outfit", Arial, sans-serif;
}

.form-group input, .form-group select {
    padding: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: "Outfit", Arial, sans-serif;
}

.advanced-link {
    font-size: 0.9rem;
    color: #00c4b4;
    text-decoration: none;
    font-family: "Outfit", Arial, sans-serif;
}

.advanced-link:hover {
    text-decoration: underline;
}

.form-results {
    background-color: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
}

.results-breakdown {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

#payment-breakdown-chart {
    max-width: 200px;
    max-height: 200px;
}

.breakdown-details p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: "Outfit", Arial, sans-serif;
}

.breakdown-details p span {
    font-weight: bold;
}

.total-payment {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1rem;
}

/* Mortgage Types Section */
.mortgage-types {
    margin-bottom: 2rem;
}

.mortgage-types h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: "Outfit", Arial, sans-serif;
}

.mortgage-types p {
    font-size: 0.9rem;
    color: #666;
    font-family: "Outfit", Arial, sans-serif;
    margin-bottom: 1rem;
}

.mortgage-types table {
    width: 100%;
    border-collapse: collapse;
}

.mortgage-types th, .mortgage-types td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.9rem;
    font-family: "Outfit", Arial, sans-serif;
}

.mortgage-types th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.mortgage-types .note {
    font-size: 0.8rem;
    color: #666;
    font-family: "Outfit", Arial, sans-serif;
    margin-top: 0.5rem;
}

/* Tips Section */
.tips-section {
    margin-bottom: 2rem;
}

.tips-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: "Outfit", Arial, sans-serif;
}

.tips-section p {
    font-size: 0.9rem;
    color: #666;
    font-family: "Outfit", Arial, sans-serif;
    margin-bottom: 1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tip-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: "Outfit", Arial, sans-serif;
}

.tip-item p {
    font-size: 0.9rem;
    color: #666;
    font-family: "Outfit", Arial, sans-serif;
}

/* Mortgage Tools */
.mortgage-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tool-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.tool-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: "Outfit", Arial, sans-serif;
}

.tool-card p {
    font-size: 0.9rem;
    color: #666;
    font-family: "Outfit", Arial, sans-serif;
    margin-bottom: 1rem;
}

.tool-link {
    font-size: 0.9rem;
    color: #00c4b4;
    text-decoration: none;
    font-family: "Outfit", Arial, sans-serif;
}

.tool-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 767px) {
    .form-inputs {
        grid-template-columns: 1fr;
    }

    .results-breakdown {
        flex-direction: column;
        align-items: center;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .mortgage-tools {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .form-inputs {
        grid-template-columns: repeat(2, 1fr);
    }
}