/**
 * iOS-Style Application Form UI
 * Extension of auth-ios.css for the apply page
 */

/* ============================================
   LAYOUT ADJUSTMENTS
   ============================================ */

/* Wider card for application form */
.apply-card-ios {
    width: 100%;
    max-width: 800px;
    /* Wider than auth card */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 50px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 2px 4px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 40px auto;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title-ios {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title-ios i {
    font-size: 1.4rem;
    color: var(--turquoise);
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.4));
}

.section-title-ios h3 {
    font-size: 1.3rem;
    margin: 0;
    color: white;
    font-weight: 700;
}

/* ============================================
   ROLE SELECTION GRID
   ============================================ */
.roles-grid-ios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.role-option-ios {
    cursor: pointer;
    position: relative;
}

.role-option-ios input {
    display: none;
}

.role-card-ios {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.role-card-ios:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.role-card-ios i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    z-index: 2;
}

.role-card-ios span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Active State */
.role-option-ios input:checked+.role-card-ios {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--turquoise);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.15);
}

.role-option-ios input:checked+.role-card-ios i,
.role-option-ios input:checked+.role-card-ios span {
    color: white;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* Glow Effect Background on Active */
.role-card-ios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--turquoise), var(--purple-glow));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.role-option-ios input:checked+.role-card-ios::before {
    opacity: 0.1;
}

/* ============================================
   STATUS MESSAGES (Success/Reject)
   ============================================ */
.status-card-ios {
    text-align: center;
    padding: 40px 20px;
}

.status-icon-ios {
    font-size: 4rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.status-title-ios {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status-msg-ios {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.rejection-box-ios {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: right;
}

/* ============================================
   TEXTAREA CUSTOMIZATION
   ============================================ */
textarea.input-ios {
    min-height: 150px;
    resize: none;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .apply-card-ios {
        padding: 30px 20px;
        margin: 20px auto;
        border-radius: 25px;
    }

    .roles-grid-ios {
        grid-template-columns: repeat(2, 1fr);
    }
}