/* Apply page Stylesheet */

.apply-section {
    padding: 85px 0;
}

.apply-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
}

.apply-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(13, 110, 70, 0.05);
}

.apply-card h3 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.apply-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
}

/* Custom form choices radio/checkbox alignment */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-dark);
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.apply-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.apply-info-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(13, 110, 70, 0.03);
}

.apply-info-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apply-info-card h4 i {
    color: var(--secondary);
}

.apply-info-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.step-item {
    display: flex;
    gap: 16px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.step-text h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.step-text p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Warnings board */
.safety-warning-box {
    background-color: #fff9f9;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px;
}

.safety-warning-box h4 {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.safety-warning-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive Apply css */
@media (max-width: 1024px) {
    .apply-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .apply-section {
        padding: 50px 0;
    }

    .apply-card {
        padding: 25px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .radio-group {
        height: auto !important;
        flex-wrap: wrap;
    }
}

/* Success Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(3, 43, 26, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    /* must sit above general header navs */
    padding: 20px;
    animation: fadeIn 0.25s ease forwards;
}

/* Modal Card */
.success-modal-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(3, 43, 26, 0.25);
    text-align: center;
    border: 1px solid rgba(13, 110, 70, 0.08);
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-success-icon {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-modal-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.success-modal-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.success-modal-card p strong {
    color: var(--primary-dark);
}

.success-modal-card .modal-subtext {
    font-size: 13px;
    background-color: var(--bg-mint);
    padding: 12px 15px;
    border-radius: var(--radius-md);
    color: var(--primary-dark);
    margin-bottom: 28px;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-confirm-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    background-color: #25D366;
    color: white;
    border-radius: var(--radius-sm);
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.modal-confirm-btn:hover {
    background-color: #20ba59;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.modal-close-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    border-color: rgba(13, 110, 70, 0.15);
    background-color: transparent;
    color: var(--text-muted);
    border-width: 1px;
    border-style: solid;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}