/* Agent Page Styles */
.agent-benefits-section {
    padding: 6rem 0;
    background: white;
}

/* Hero Section Centering */
.hero-section-common .hero-content {
    text-align: center;
}

.section-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.benefits-grid {
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #228B70, #1e7a5e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.benefit-card h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Form Section */
.agent-form-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #228B70, #1e7a5e);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.agent-form {
    padding: 3rem 2rem;
}

.form-step {
    display: none;
    padding: 2rem 0;
}

.form-step.active {
    display: block;
}

/* Specific styling for step 2 (Security & Credentials) */
.form-step[data-step="2"] {
    padding: 3rem 0 2rem 0;
}

.form-step[data-step="2"] .row {
    margin-bottom: 2rem;
}

.form-step[data-step="2"] .form-group {
    margin-bottom: 2rem;
}

.form-step[data-step="2"] .form-control {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-step[data-step="2"] .form-control:focus {
    border-color: #228B70;
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 112, 0.25);
}

/* Password field specific styling */
.form-step[data-step="2"] .password-field {
    position: relative;
}

.form-step[data-step="2"] .password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-step[data-step="2"] .password-toggle:hover {
    color: #228B70;
}

/* Add more space between password fields */
.form-step[data-step="2"] .col-md-6:first-child {
    margin-bottom: 1.5rem;
}

/* Responsive adjustments for step 2 */
@media (max-width: 768px) {
    .form-step[data-step="2"] {
        padding: 2rem 0 1.5rem 0;
    }
    
    .form-step[data-step="2"] .form-group {
        margin-bottom: 1.5rem;
    }
}

.step-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #228B70;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #228B70;
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 112, 0.25);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
}

.password-toggle:hover {
    color: #228B70;
}

.terms-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.form-check {
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Form Error Messages */
.form-error-message {
    margin: 1rem 0;
}

.form-error-message .alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.form-error-message .alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.btn-brand {
    background: #228B70;
    border-color: #228B70;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-brand:hover {
    background: #1e7a5e;
    border-color: #1e7a5e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 139, 112, 0.3);
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Success Stories Section */
.agent-stories-section {
    padding: 6rem 0;
    background: white;
}

.stories-grid {
    margin-top: 3rem;
}

.story-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.story-content {
    text-align: center;
}

.quote-icon {
    color: #228B70;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.story-content p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 2rem;
}

.story-author h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.story-author span {
    color: #228B70;
    font-size: 0.9rem;
    font-weight: 500;
}

/* CTA Section */
.agent-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #228B70, #1e7a5e);
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-button .btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cta-button .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content i {
    color: #228B70;
    margin-bottom: 1rem;
}

.loading-content p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .agent-benefits-section,
    .agent-form-section,
    .agent-stories-section,
    .agent-cta-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .benefit-card,
    .story-card {
        padding: 2rem 1.5rem;
    }
    
    .form-header {
        padding: 2rem 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .agent-form {
        padding: 2rem 1.5rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
    
    .cta-text h2 {
        font-size: 2rem;
    }
    
    .cta-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .benefit-card,
    .story-card {
        padding: 1.5rem 1rem;
    }
    
    .form-header {
        padding: 1.5rem 1rem;
    }
    
    .agent-form {
        padding: 1.5rem 1rem;
    }
    
    .cta-text h2 {
        font-size: 1.8rem;
    }
}
