/* --- Membership Hero Banner --- */
.membership-hero {
    background: linear-gradient(rgba(0, 34, 68, 0.92), rgba(0, 34, 68, 0.92)), 
                url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    padding: 6rem 0;
    text-align: center;
    color: #ffffff;
    border-bottom: 5px solid #d9232d;
}

.membership-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.membership-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #e6f2ff;
}

/* --- Shared Dividers & Headers --- */
.divider {
    height: 3px;
    width: 60px;
    background-color: #d9232d;
    margin: 1.5rem auto;
}

.small-divider {
    height: 3px;
    width: 50px;
    background-color: #d9232d;
    margin: 1rem auto 1.5rem auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #002244;
}

/* --- Process Section --- */
.process-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #002244;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1.5rem auto;
    border: 4px solid #f0f7ff;
    box-shadow: 0 0 0 4px #002244;
}

.step h4 {
    font-size: 1.3rem;
    color: #002244;
    margin-bottom: 1rem;
}

.step p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Form Section --- */
.form-section {
    padding: 3rem 0 7rem;
    background-color: #f4f7f6; /* Contrasting background for the form box */
    border-top: 1px solid #e0e0e0;
}

.app-form-container {
    background-color: #ffffff;
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-top: 5px solid #d9232d;
    max-width: 900px;
    margin: 0 auto;
}

.app-form-container h3 {
    color: #002244;
    font-size: 2.2rem;
    text-align: center;
}

/* Official Form Styling */
.official-form fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    background-color: #fdfdfd;
}

.official-form legend {
    background-color: #002244;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-row .form-group {
    margin-bottom: 0; 
}

.half-width {
    flex: 1;
}

.official-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.required {
    color: #d9232d;
}

.official-form input[type="text"],
.official-form input[type="email"],
.official-form input[type="tel"],
.official-form input[type="url"],
.official-form input[type="month"],
.official-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.official-form input:focus,
.official-form textarea:focus {
    outline: none;
    border-color: #002244;
    box-shadow: 0 0 5px rgba(0, 34, 68, 0.2);
}

/* Personnel Block (Section 4) */
.personnel-block {
    margin-bottom: 2rem;
}

.personnel-block:last-child {
    margin-bottom: 0;
}

.personnel-label {
    display: block;
    font-weight: bold !important;
    color: #002244 !important;
    font-size: 1.05rem !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem !important;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #f0f7ff;
    padding: 1.5rem;
    border: 1px solid #cce0ff;
    border-radius: 6px;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: normal;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    cursor: pointer;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: #002244;
    color: #ffffff;
    border: none;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 4px 10px rgba(0, 34, 68, 0.2);
}

.submit-btn:hover {
    background-color: #d9232d;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .app-form-container {
        padding: 2rem 1.5rem;
    }
    .official-form fieldset {
        padding: 1.5rem 1rem;
    }
}