/* --- Global Styles & Variables (Mobile First) --- */
:root {
    --primary-color: #005A9E; /* SBI Blue */
    --secondary-color: #FF6F00; /* Accent Orange */
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --background-color: #f4f7f6;
    --sbi-color: #005A9E;
    --kotak-color: #D32F2F;
    --dmi-color: #616161;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--dark-color);
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Base font sizes for mobile */
h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px; /* More padding for smaller screens */
}

/* --- Header --- */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

/* --- Main Content Sections --- */
main section {
    padding: 2.5rem 0;
    border-bottom: 1px solid #ddd;
}

main section:last-child { border-bottom: none; }

h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* --- Comparison Table --- */
.table-container {
    overflow-x: auto; /* Allows horizontal scrolling on small screens */
}

table {
    width: 100%;
    min-width: 600px; /* Ensures table doesn't get too cramped */
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

th, td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--light-color);
}

th {
    background-color: var(--dark-color);
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

td:first-child { font-weight: 500; }

.provider-sbi { background-color: var(--sbi-color); }
.provider-kotak { background-color: var(--kotak-color); }
.provider-dmi { background-color: var(--dmi-color); }

/* --- Verdict Section --- */
.provider-details {
    display: flex;
    flex-direction: column; /* Stack cards vertically by default */
    gap: 1.5rem;
}

.provider-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid;
}

.sbi-card { border-color: var(--sbi-color); color: var(--sbi-color); }
.kotak-card { border-color: var(--kotak-color); color: var(--kotak-color); }
.dmi-card { border-color: var(--dmi-color); color: var(--dmi-color); }

.provider-card h3 { margin-bottom: 1rem; }
.provider-card p { color: var(--dark-color); }

/* --- FAQ Section --- */
.faq-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1rem;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    position: relative;
    color: var(--dark-color);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-answer p { padding: 1rem 0; }

/* --- Contact Form --- */
#contact { background-color: var(--light-color); }

#contactForm {
    max-width: 600px;
    margin: auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover { background: #e65100; }

#form-status { text-align: center; margin-top: 1rem; font-weight: 600; }

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

footer .disclaimer {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 0.5rem;
    padding: 0 10px;
}

/* ============================================= */
/* --- Media Query for Tablets and Desktops --- */
/* ============================================= */
@media (min-width: 768px) {
    /* Increase font sizes for larger screens */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }

    .container {
        padding: 0 20px; /* Adjust padding for larger viewports */
    }

    /* Switch to a grid layout for verdict cards */
    .provider-details {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}