/* --- Global Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Mukta+Malar:wght@400;600;700&display=swap');

:root {
    --theme-yellow: #fff59d;
    --theme-orange: #ffb300;
    --theme-red: #d32f2f;
    --theme-dark-red: #c62828;
    --text-dark: #3e2723;
    --bg-light: #fffdf5;
}

body {
    font-family: 'Mukta Malar', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
}

/* --- Header --- */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo img { max-height: 60px; }
nav a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    margin-left: 25px;
    font-size: 16px;
    transition: 0.3s;
}
nav a:hover { color: var(--theme-orange); }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--theme-yellow) 0%, #ffe082 100%);
    text-align: center;
    padding: 60px 20px;
    border-bottom: 3px solid var(--theme-orange);
}
.hero h1 { font-size: 42px; color: var(--text-dark); margin-bottom: 10px; }
.hero h1 span { color: var(--theme-red); }
.hero p { font-size: 18px; max-width: 900px; margin: 0 auto 30px auto; color: #5d4037; }
.btn-app {
    background: #e65100;
    color: #fff;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(230, 81, 0, 0.3);
    display: inline-block;
}

/* --- Main Content Layout --- */
.main-container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.section-title { text-align: center; color: var(--theme-dark-red); font-size: 28px; margin-bottom: 30px; }

/* --- Birth Details Form Box --- */
.form-box {
    background: #fffde7;
    border: 2px solid #fbc02d;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(251, 192, 45, 0.15);
}
.form-box h3 { text-align: center; color: var(--theme-red); font-size: 22px; margin-top: 0; border-bottom: 1px solid #fbc02d; padding-bottom: 15px; margin-bottom: 25px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; color: #004d40; margin-bottom: 5px; font-size: 15px; }
.form-control { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; box-sizing: border-box; }
.form-control:focus { border-color: var(--theme-orange); outline: none; box-shadow: 0 0 5px rgba(255, 179, 0, 0.3); }

/* Multi-field rows (Date & Time) */
.multi-field { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.btn-submit {
    background: #d32f2f;
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 30px auto 0 auto;
    transition: 0.3s;
}
.btn-submit:hover { background: #b71c1c; }

/* --- Content & Tables --- */
.content-box { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 40px; border-left: 5px solid var(--theme-orange); }
.content-box h2 { color: var(--theme-dark-red); font-size: 24px; margin-top: 0; }

.astro-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.astro-table th { background: #f5b041; color: #fff; padding: 12px; border: 1px solid #e67e22; font-size: 18px; }
.astro-table td { padding: 12px; border: 1px solid #f5cba7; color: #5d4037; }
.astro-table tr:nth-child(even) { background-color: #fef9e7; }
.col-highlight { font-weight: bold; color: #c62828; text-align: center; width: 20%; background: #fae5d3; }

/* --- FAQ Section --- */
.faq-section { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 40px; }
.faq-item { border-bottom: 1px solid #eee; padding: 15px 0; }
.faq-q { font-weight: bold; color: var(--theme-dark-red); font-size: 18px; margin: 0 0 5px 0; }
.faq-a { color: #555; margin: 0; }

/* Responsive */
@media (max-width: 768px) {
    .header-container { flex-direction: column; }
    nav { margin-top: 15px; }
    .form-grid { grid-template-columns: 1fr; }
    .multi-field { grid-template-columns: 1fr; }
}
@media screen and (max-width: 768px) {
    /* ஜாதக குறிப்புகள் உள்ள மெயின் பாக்ஸ் */
    .details-container {
        display: block !important;
        width: 100% !important;
    }
    
    /* இரண்டு காலம்களாக இருப்பதை சிங்கிள் காலமாக மாற்ற */
    .left-column, .right-column {
        width: 100% !important;
        display: block !important;
        float: none !important;
    }

    /* உள்ளே உள்ள எழுத்துக்களுக்கு இடையே இடைவெளி விட */
    .detail-row {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px dashed #ccc;
    }
}