/* Hero Section with Form - Separate CSS */

/* Hero Section Base Styles */
.hero {
    height: 90vh;
    position: relative;
    background: linear-gradient(rgb(0 0 0 / 44%), rgb(0 0 0 / 56%)), url('../images/masters-acity-hero.jpg') center/cover no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(204, 54, 52, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0.6;
    z-index: 1;
}

/* Hero Container with Two Column Layout */
.hero .container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Content - Left Side */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: 0 20px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeIn 1s ease;
    word-wrap: break-word;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.8;
    animation: fadeIn 1.5s ease;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeIn 2s ease;
}

/* Hero Form Container - Right Side */
.hero-form-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInRight 1s ease;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 10;
	max-height: 620px !important; 
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: var(--secondary);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.zoho-form-wrapper {
    width: 100%;
    min-height: 600px;
}

/* Zoho Form Iframe Styling */
.zoho-form-wrapper iframe {
    border: none;
    width: 100%;
}

/* Placeholder styling for NPF widget */
.npf_wgts {
    width: 100%;
    min-height: 600px;
}

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

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Responsive Design - Tablet and Below */
@media screen and (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-form-container {
        margin: 0 auto;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 768px) {
    nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 90vh;
        padding: 60px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-form-container {
        padding: 30px 20px;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }

    .form-header p {
        font-size: 0.9rem;
    }

    .zoho-form-wrapper {
        height: auto;
        overflow: visible;
    }
    
    .npf_wgts {
        height: auto;
    }
}

/* Responsive Design - Small Mobile */
@media screen and (max-width: 480px) {
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 40px 0;
    }

    .hero-content {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-form-container {
        padding: 25px 15px;
    }

    .form-header h3 {
        font-size: 1.3rem;
    }

    .hero .container {
        gap: 25px;
    }
}

/* Loading State for Form */
.zoho-form-wrapper:empty::after {
    content: 'Loading form...';
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--secondary);
    font-size: 1rem;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .hero h1,
    .hero p,
    .hero-buttons,
    .hero-form-container {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .hero {
        min-height: auto;
        background: none;
        color: var(--dark);
    }

    .hero::before {
        display: none;
    }

    .hero-form-container {
        display: none;
    }
}