/* Hero Section Enhancement for Better Visibility */

/* Improve hero section readability and form visibility */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Make overlay darker for better text contrast */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.92) 0%, rgba(44, 95, 141, 0.88) 100%);
    z-index: 1;
}

/* Ensure hero content is properly visible */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 0;
}

/* Hero text styling for maximum readability */
.hero-text h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.hero-text p {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Enhanced form visibility */
.hero-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 3px solid #d4af37;
}

.hero-form h3 {
    color: #1e3a5f;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

/* HubSpot form styling for better appearance */
.hero-form form,
.hero-form #hubspot-form-hero {
    margin: 0;
}

/* Style HubSpot form elements when they load */
.hero-form .hs-form-field {
    margin-bottom: 1rem;
}

.hero-form .hs-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.hero-form .hs-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.hero-form .hs-button {
    width: 100%;
    background: #d4af37;
    color: #1e3a5f;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-form .hs-button:hover {
    background: #c19d2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Improve button visibility */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: #d4af37;
    color: #1e3a5f;
}

.btn-primary:hover {
    background: #c19d2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #1e3a5f !important;
    border: 3px solid #1e3a5f;
    font-weight: 800;
    text-shadow: none;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: #1e3a5f;
    color: #ffffff !important;
    border-color: #1e3a5f;
    transform: translateY(-2px);
}

/* Highlight accent color for better visibility */
.hero-text .highlight {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    .hero-text p {
        font-size: 1.125rem;
    }
    
    .hero-form {
        padding: 2rem;
    }
    
    .hero-form h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Additional contrast improvements */
.hero-background {
    opacity: 0.25;
}

/* Loading state for HubSpot forms */
.hero-form #hubspot-form-hero:empty::after {
    content: "Loading form...";
    display: block;
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}
