/* ============================================
   7. PAGE: APPLY FORM
   ============================================ */

/* Apply **************/


.blinking{
    animation: 3s linear blinkingAnimation infinite;
    color: rgb(235, 45, 45);
}

@keyframes blinkingAnimation{
    10%{
        color: rgb(194, 8, 8);
    }
    20%{
        color: rgb(235, 45, 45);
    }
    30%{
        color: rgb(187, 36, 36);
    }
    40%{
        color: rgb(235, 45, 45);
    }
    50%{
        color: rgb(187, 36, 36);
    }
    60%{
        color: rgb(235, 45, 45);
    }
    70%{
        color: rgb(187, 36, 36);
    }
    80%{
        color: rgb(235, 45, 45);
    }
    90%{
        color: rgb(187, 36, 36);
    }
    100%{
        color: rgb(235, 45, 45);
    }
}

/* Apply Form - Enhanced Styling */
.applyForm {
    max-width: 1800px;         /* CHANGED: from 1400px - much wider form */
    margin: 2rem auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem; /* ensure proper spacing between sections */
}

.applyForm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--logoBlue), var(--logoCyan));
}

.applyForm fieldset {
    border: none;
    margin: 0;
    padding: 0;
    max-width: 1700px;         /* CHANGED: from 1300px - much wider fieldset to match form */
    margin: 0 auto;
}

.applyForm legend {
    font-size: 2rem;
    font-weight: 700;
    color: var(--logoBlue);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.applyForm legend::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--logoBlue), var(--logoCyan));
    border-radius: 2px;
}

/* Simplified Input Styling - More Professional */
input, select, textarea, #comments {
    width: 100%;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--logoBlue);  /* CHANGED: from #e9ecef - blue outline for all inputs */
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus, #comments:focus {
    outline: none;
    border-color: var(--logoBlue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Required Field Styling */
.applyForm .required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 0.25rem;
    font-size: 1.1rem;
}

/* Enhanced Label Styling */
.applyForm label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.applyForm label:hover {
    color: var(--logoBlue);
}

/* Organization Type Buttons - Enhanced */
.organizationTypeButton {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    margin: 0 4rem;            /* CHANGED: from 3rem - even more spacing between buttons */
    background: white;
    border: 3px solid var(--logoBlue);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 220px;          /* CHANGED: from 200px - bigger buttons for even appearance */
    font-weight: 600;
    color: var(--logoBlue);
    position: relative;
    overflow: hidden;
}

.organizationTypeButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.organizationTypeButton:hover::before {
    left: 100%;
}

.organizationTypeButton:hover {
    background: var(--logoBlue);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
}

.organizationTypeButton.active {
    background: var(--logoBlue);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.organizationTypeButton i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.organizationTypeButton:hover i {
    transform: scale(1.1);
}

/* Requirements Section - Enhanced */
.applyForm .doYouNeed {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px solid #dee2e6;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
    margin: 2rem 0;
    padding: 2rem;
    position: relative;
}

.applyForm .doYouNeed::before {
    content: '📋';
    position: absolute;
    top: -10px;
    left: 20px;
    background: white;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.doYouNeed div {
    margin: 0.5rem 0;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.doYouNeed input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    accent-color: var(--logoBlue);
    margin: 0;
}

.doYouNeed input[type="number"] {
    width: 100px;
    padding: 0.75rem;
    margin: 0;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-weight: 600;
}

.doYouNeed input[type="number"]:focus {
    border-color: var(--logoBlue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Enhanced Table Styling */
.eligibleTable {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.eligibleTable th,
.eligibleTable td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.eligibleTable th {
    background: linear-gradient(135deg, var(--logoBlue), #0056b3);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eligibleTable tr:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.eligibleTable tr:last-child td {
    border-bottom: none;
}

/* Enhanced Icons */
.check-icon {
    color: var(--logoBlue);
    margin-right: 0.75rem;
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced Agreement Section */
.agreement-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agreement-label::before {
    content: '✓';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--logoBlue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

.agreement-label:hover {
    border-color: var(--logoBlue);
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.agreement-label:hover::before {
    opacity: 1;
    right: 20px;
}

.agreement-label input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    accent-color: var(--logoBlue);
}

.policy-link {
    color: var(--logoBlue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.policy-link:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

/* Enhanced Submit Button */
.submit-btn {
    background: linear-gradient(135deg, var(--logoBlue), #0056b3);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: block;
    margin: 3rem auto 0 auto;
    min-width: 200px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #0056b3, var(--logoBlue));
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}
