:root {
    --primary-color: #f7f7f7;
    --secondary-color: #0d1a26;
    --accent-color: #6a8cff;
    --text-color: #333;
    --bg-light: #ffffff;
    --bg-dark: #f4f5f8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Updated loading spinner styles */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Main Content */
#content {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.logo {
    width: 200px;
    margin-bottom: 20px;
}

/* Sections */
section {
    padding: 60px 20px;
    text-align: center;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/background.png') no-repeat center center/cover;
    color: var(--primary-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    animation: fadeInUp 1s forwards;
    opacity: 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

/* New Services Section */
.services {
    background-color: var(--bg-dark);
}

.package-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.package-card {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 10px;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.package-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.package-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.package-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.package-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.package-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.package-card .highlight {
    font-weight: 600;
    color: var(--secondary-color);
}

.cta-button.small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* CTA */
.cta {
    background-color: var(--bg-light);
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button.primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.cta-button.primary:hover {
    background-color: #0d1a26d0;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--secondary-color);
    padding: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries for larger screens */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .package-container {
        flex-direction: row;
        gap: 40px;
    }

    .package-card {
        padding: 50px;
    }
}

/* Intake Form Specific Styles */
.consult-hero {
    min-height: 50vh; /* Shorter hero section for the form page */
}

.consult-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: left;
}

/* New centering container for the form title */
.centered-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 30px;
}

.centered-title-container h2 {
    text-align: center;
    margin-bottom: 0; /* Remove the bottom margin from h2 to control spacing via the container */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg-dark);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Intake Form Specific Styles - Updated Radio Group */
.radio-group {
    display: flex;
    flex-direction: column; /* Align items vertically */
    gap: 10px; /* Adjust vertical spacing */
}

.radio-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap; /* Prevent text from wrapping */
}

.radio-group input-group {
   margin-bottom: 10px;
}

.radio-group input-group label {
   display: flex;
   align-items: center;
}

.radio-group input-group input {
   margin-right: 8px;
}

.radio-group input {
    margin-right: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-group input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.radio-group input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cta-button.submit-button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Responsive adjustments for form */
@media (max-width: 768px) {
    .consult-form-container {
        padding: 20px 10px;
    }
}

.flash-red {
    color: red;
    margin-top: 5px;
    font-size: 8pt;
}