/* --- APB Properties of Florida: Referral Agent Stylesheet (referral-page.css) --- */

/* 1. Referral Hero Section */
.referral-hero-section {
    padding: 80px 5%;
    text-align: center;
    background-color: #001f3f; /* Deep Navy Blue */
    color: #ffffff;
    /* Placeholder background */
    background-image: url(../photos/referral-hero-bg.jpg); 
    background-size: cover;
    background-position: center;
}

.hero-content-referral {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 31, 63, 0.75); /* Dark overlay for text */
    padding: 25px;
    border-radius: 8px;
}

.hero-content-referral h2 {
    font-size: 2.8em;
    color: #ff6f61; /* Coral highlight */
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    color: #ccc;
    margin-bottom: 30px;
}

.cta-signup {
    display: inline-block;
    padding: 15px 30px;
    background-color: #0077b6; /* Aqua CTA */
    color: #ffffff;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.cta-signup:hover {
    background-color: #005f93;
    text-decoration: none;
}

/* 2. Key Benefits */
.referral-benefits {
    text-align: center;
    padding: 60px 5%;
    background-color: #ffffff;
}

.referral-benefits h3 {
    color: #001f3f;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: #f4f4f9;
}

.benefit-card i {
    font-size: 2.5em;
    color: #ff6f61; /* Coral icon */
    margin-bottom: 15px;
}

.benefit-card h4 {
    color: #0077b6;
    font-size: 1.3em;
}

/* 3. How It Works Process */
.how-it-works {
    text-align: center;
    padding: 60px 5%;
    background-color: #eaf6ff; /* Light Blue Accent */
}

.process-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.step-icon {
    flex-basis: 25%;
    padding: 15px;
}

.step-icon i {
    font-size: 3em;
    color: #001f3f;
    margin-bottom: 10px;
}

.step-arrow {
    flex-basis: 5%;
    font-size: 2em;
    color: #0077b6;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* 4. Enrollment Form */
.enrollment-section {
    padding: 60px 5%;
    text-align: center;
    background-color: #ffffff;
}

/* 5. NEW LEAD SUBMISSION SECTION STYLES */
.lead-submission-section {
    padding: 60px 5%;
    text-align: center;
    background-color: #f4f4f9; /* Subtle background difference */
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.lead-submission-section h3 {
    color: #0077b6; /* Aqua header */
}

.referral-lead-form {
    max-width: 500px;
    margin: 0 auto;
}

.referral-lead-form input,
.referral-lead-form select,
.referral-lead-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.referral-lead-form textarea {
    min-height: 80px;
}

.form-divider {
    border: 0;
    height: 1px;
    background: #001f3f; /* Navy divider for separation */
    margin: 25px 0;
}

.cta-submit-lead {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #001f3f; /* Deep Navy CTA */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.cta-submit-lead:hover {
    background-color: #0077b6;
}

/* Shared Form Styles */
.form-subtext {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #555;
}

.referral-agent-form {
    max-width: 500px;
    margin: 0 auto;
}

.referral-agent-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.cta-submit-referral {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #ff6f61; /* Coral submit button */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.cta-submit-referral:hover {
    background-color: #e55a4e;
}

/* 6. Mobile Responsiveness */
@media (max-width: 768px) {
    .referral-hero-section {
        padding: 60px 5%;
    }

    .hero-content-referral h2 {
        font-size: 2em;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .process-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-icon {
        flex-basis: 100%;
        padding: 10px;
    }
    
    .step-arrow {
        flex-basis: 100%;
        transform: rotate(90deg) !important;
        margin: 5px 0;
    }
}
