:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
    --container-bg: #ffffff;
    --font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

main {
    background-color: var(--container-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

#main-header-container {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

#intro p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

button#prevBtn {
    background-color: var(--secondary-color);
}

button#prevBtn:hover {
    background-color: #5a6268;
}

.hidden {
    display: none;
}

/* Form Styles */
#matcher-form {
    text-align: left;
}

.form-step {
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-step input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.form-step input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Progress Bar */
#progress-bar-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 0.4s ease-in-out;
}

/* Results Section */
#results h2 {
    margin-bottom: 20px;
}

#lender-list {
    text-align: left;
}

.lender-card {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 15px;
}

.lender-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.lender-card p {
    margin: 5px 0;
}

.lender-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.lender-card a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
