/* style.css */

/* --- Base & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    /* Beautiful modern gradient background */
    background: linear-gradient(135deg, #f0f4f8 0%, #e2ebf0 100%);
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    transition: all 0.3s ease;
}

/* --- Layout --- */
main {
    width: min(1000px, 92%);
    margin: 40px auto 60px;
    display: grid;
    gap: 30px;
}

/* --- Navbar (Glassmorphic) --- */
.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 6%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 50;
}

.logo-image {
    width: 160px;
    max-width: 30vw;
    height: 50px;
    object-fit: contain;
    object-position: left center;
}

.navbar nav {
    display: flex;
    gap: 24px;
}

.navbar nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 1.05rem;
}

.navbar nav a:hover {
    color: #dc143c;
}

/* --- Hero Section & Grid --- */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: flex-start;
}

/* --- Glassmorphic / Premium Cards --- */
.card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
}

.modern-card {
    background: #ffffff;
}

/* --- Headers & Text inside Form --- */
.form-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.gradient-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #dc143c 0%, #ff4b2b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.form-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 400;
}

.section-title {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 400;
    margin-bottom: 24px;
}

/* --- Form Elements --- */
.field {
    margin-bottom: 18px;
}

label, legend {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    background: #fdfdfd;
}

fieldset ul {
    list-style: none;
}

fieldset li {
    margin: 10px 0;
}

fieldset label {
    display: inline;
    margin-left: 8px;
    font-weight: 400;
}

/* --- Privacy section --- */
.privacy {
    background: #fff1f2;
    border-left: 4px solid #f43f5e;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 8px 12px 12px 8px;
}

.privacy h3 {
    margin-bottom: 6px;
    color: #be123c;
    font-size: 1.1rem;
}

.privacy p {
    color: #881337;
    font-size: 0.95rem;
}

/* --- Button --- */
.btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #dc143c 0%, #e11d48 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-family: 'Outfit';
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(220, 20, 60, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
    background: linear-gradient(135deg, #be123c 0%, #dc143c 100%);
}

.errorlist {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    list-style-type: disc;
    padding-left: 20px;
}

/* --- Right Side: Photo Card --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
}

.modern-hero-image {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    aspect-ratio: 4 / 5;
    background: #cbd5e1; /* fallback placeholder color */
}

.hero-slogan-box {
    padding: 0 10px 10px;
}

.slogan-title {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.slogan-text {
    font-size: 1.2rem;
    color: #dc143c;
    font-weight: 500;
    font-style: italic;
}

/* --- Media Queries --- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-image-wrap {
        position: relative;
        top: 0;
    }
    
    .modern-hero-image {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .navbar nav {
        gap: 15px;
    }
    
    .logo-image {
        width: 110px;
    }
}

/* --- Dynamic Question Fields --- */
.dynamic-question-field {
    margin-bottom: 18px;
}

.dynamic-question-field label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.required-star {
    color: #dc143c;
    font-weight: 700;
    font-size: 1rem;
    margin-left: 3px;
}

/* Style native <select> dropdowns */
.dynamic-question-field select,
.dynamic-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
    background: #fff;
    cursor: pointer;
    appearance: auto;
    transition: border-color 0.2s;
}

.dynamic-question-field select:focus,
.dynamic-select:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.08);
}

/* Style checkbox groups */
.checkbox-group ul, .checkbox-group {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group li, .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #dc143c;
    cursor: pointer;
    flex-shrink: 0;
}

/* --- Radio Button Styling --- */
.dynamic-question-field ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dynamic-question-field ul li {
    display: flex;
    align-items: center;
}

.dynamic-question-field ul li label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 400 !important;
    font-size: 0.97rem;
    color: #1e293b;
    cursor: pointer;
    padding: 10px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    width: 100%;
    transition: all 0.2s ease;
}

.dynamic-question-field ul li label:hover {
    border-color: #dc143c;
    background: #fff5f7;
}

.dynamic-question-field ul li input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #dc143c;
    cursor: pointer;
    flex-shrink: 0;
}

.dynamic-question-field ul li input[type="radio"]:checked + * {
    color: #dc143c;
    font-weight: 600 !important;
}

/* Highlight the entire label when radio is checked */
.dynamic-question-field ul li:has(input[type="radio"]:checked) label {
    border-color: #dc143c;
    background: #fff5f7;
    color: #dc143c;
    font-weight: 600 !important;
}
