/*
 * style.css
 * Main stylesheet for Kaviyam Ads website.
*/

/* --- Google Fonts & Root Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1a237e; /* A professional dark blue */
    --secondary-color: #c79100; /* A matching gold/yellow */
    --light-gray: #f4f4f4;
    --dark-gray: #333333;
    --white-color: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- General & Body Styles --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background-color: var(--white-color);
    color: var(--dark-gray);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { color: var(--primary-color); margin-bottom: 1rem; line-height: 1.3; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
section { padding: 60px 0; }

/* --- Header & Navigation --- */
.main-header { background-color: var(--white-color); padding: 1rem 0; box-shadow: var(--box-shadow); position: sticky; top: 0; z-index: 100; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; }
.main-nav ul { list-style: none; display: flex; }
.main-nav ul li { margin-left: 25px; }
.main-nav a { text-decoration: none; color: var(--primary-color); font-weight: 500; transition: color 0.3s ease, background-color 0.3s ease; padding: 5px 10px; border-radius: 5px; }
.main-nav a:hover, .main-nav a.active { color: var(--white-color); background-color: var(--primary-color); }

/* --- Hero Section --- */
.hero { background: linear-gradient(rgba(26, 35, 126, 0.85), rgba(26, 35, 126, 0.85)), url('../images/hero-bg.png') no-repeat center center/cover; color: var(--white-color); padding: 100px 0; text-align: center; }
.hero h1 { color: var(--white-color); }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem auto; }
.btn { display: inline-block; padding: 12px 30px; background-color: var(--secondary-color); color: var(--white-color); border-radius: 5px; text-decoration: none; font-weight: 600; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* --- Services Section --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: var(--white-color); padding: 30px; border-radius: 8px; box-shadow: var(--box-shadow); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.service-card i { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1rem; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card ul { list-style-type: none; padding: 0; color: #555; }

/* --- Forms Section (Homepage) --- */
.forms-section { background-color: var(--light-gray); }
.forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-container { padding: 30px; border-radius: 8px; box-shadow: var(--box-shadow); }
.form-container.register-form { background-color: #fffaf0; border: 1px solid var(--secondary-color); }
.form-container.feedback-form { background-color: #f0f4f0; border: 1px solid var(--success-color); }
.form-container h3 { text-align: center; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input[type="text"], .form-group input[type="tel"], .form-group input[type="password"], .form-group input[type="pincode"], .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; font-family: 'Poppins', sans-serif; }
.form-group .radio-group { display: flex; gap: 15px; }
.btn-submit { display: block; width: 100%; padding: 12px; border: none; border-radius: 5px; color: var(--white-color); font-size: 1rem; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease; }
.register-form .btn-submit { background-color: var(--secondary-color); }
.feedback-form .btn-submit { background-color: var(--success-color); }

/* --- LOGIN PAGE STYLES --- */
.login-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--light-gray);
}
.login-container {
    width: 100%;
    max-width: 420px;
    background: var(--white-color);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}
.login-logo { margin-bottom: 15px; }
.login-logo img { height: 50px; }
.login-container h2 { font-size: 1.8rem; margin-bottom: 10px; color: var(--primary-color); }
.login-container .subtitle { color: #666; margin-bottom: 20px; font-size: 0.95rem; }
.login-error { color: var(--danger-color); background-color: #f8d7da; padding: 10px; border-radius: 5px; margin-bottom: 15px; }
.login-success { color: var(--success-color); background-color: #d4edda; padding: 10px; border-radius: 5px; margin-bottom: 15px; }
.login-form .input-group {
    position: relative;
    margin-bottom: 20px;
}
.login-form .input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}
.login-form .input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Padding for icon */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}
.login-form .input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.login-form .input-group .fa-eye, .login-form .input-group .fa-eye-slash {
    left: auto;
    right: 15px;
    cursor: pointer;
}
.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.login-btn:hover {
    background-color: #141b5a;
}
.login-links {
    margin-top: 20px;
    font-size: 0.9rem;
}
.login-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.login-links a:hover {
    text-decoration: underline;
}
.login-links span {
    color: #ccc;
    margin: 0 10px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.footer-grid h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}
.footer-grid p, .footer-grid ul, .footer-grid li {
    margin-bottom: 0.5rem;
}
.footer-grid ul {
    list-style: none;
}
.footer-grid a {
    color: var(--white-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-grid a:hover {
    color: var(--secondary-color);
}
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #4a54a8;
}

/* --- Floating WhatsApp Icon --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
}
.whatsapp-float img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}
.whatsapp-float img:hover {
    transform: scale(1.1);
}

/* --- Responsive Design --- */
@media(max-width: 768px) {
    .forms-grid {
        grid-template-columns: 1fr;
    }
    .main-header .container {
        flex-direction: column;
    }
    .main-nav ul {
        margin-top: 1rem;
        padding: 0;
    }
    .main-nav ul li {
        margin: 0 10px;
    }
}
