/* General Body and Typography */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Header as LinkedIn-style cover */
header {
    background-image: url('logo.jpeg'); /* your cover image */
    background-size: cover;             /* fill the width */
    background-position: center center; /* keep focus balanced */
    background-repeat: no-repeat;
    height: 260px;                      /* slightly taller for better balance */
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

/* Optional overlay for better text contrast */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* semi-transparent overlay */
    border-radius: 0;
    z-index: 0;
}

/* Make sure text stays above the overlay */
header h1, header p {
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    margin: 5px 0;
    position: relative;
    z-index: 1;
}

/* Hide the old logo image */
header img.logo {
    display: none;
}

/* Navigation */
nav {
    background-color: #0055a5;
    text-align: center;
    padding: 12px 0;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

nav a:hover {
    text-decoration: underline;
}

/* Section Styling */
section {
    padding: 25px;
    background-color: white;
    margin: 20px auto;
    border-radius: 10px;
    max-width: 900px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2 {
    color: #003b73;
    margin-bottom: 15px;
}

ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/* Forms (Consultation & General Inputs) */
form input, form textarea, form button {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: border 0.3s, box-shadow 0.3s;
}

form input:focus, form textarea:focus {
    border-color: #003366;
    box-shadow: 0 0 5px rgba(0,85,165,0.5);
    outline: none;
}

form button {
    background-color: #0055a5;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
}

form button:hover {
    background-color: #003366;
    transform: scale(1.03);
}

/* EMI Calculator Card */
.emi-card {
    background: linear-gradient(145deg, #ffffff, #e6f0ff);
    padding: 25px;
    border-radius: 15px;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect for the card */
.emi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* Wrap label + input pair for clean vertical layout */
.emi-card .emi-field {
    margin-bottom: 15px;
}

/* Make sure all elements are block and full-width */
.emi-card label,
.emi-card input,
.emi-card button,
.emi-card h3 {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

/* Input fields */
.emi-card input {
    border: 1px solid #0055a5;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
}

.emi-card input:focus {
    border-color: #003366;
    box-shadow: 0 0 5px rgba(0,85,165,0.5);
    outline: none;
}

/* Button */
.emi-card button {
    background-color: #0055a5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.emi-card button:hover {
    background-color: #003366;
    transform: scale(1.03);
}

/* EMI Result */
#emiResult {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #003366;
    text-align: center;
}

/* Footer */
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
}
