﻿/* ================= APPLY PAGE PREMIUM ================= */

.apply-hero {
    position: relative;
    overflow: hidden;
}

.apply-hero img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    filter: brightness(65%);
}

.apply-hero .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.25);
}

.hero-content {
    max-width: 900px;
    padding: 20px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* ================= WRAPPER ================= */

.apply-wrapper {
    padding: 80px 5%;
    background: linear-gradient(180deg,#f8fafc,#ffffff);
}

/* ================= PROGRESS BAR ================= */

.progress-bar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 20px 5%;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.step {
    color: #999;
    font-weight: 600;
    position: relative;
}

.step.active {
    color: var(--primary);
}

.step.active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    border-radius: 20px;
}

/* ================= CARD ================= */

.apply-card {
    max-width: 850px;
    margin: 70px auto;
    background: white;
    border-radius: 22px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.apply-card h2 {
    color: var(--primary);
    font-size: 2.3rem;
    margin-bottom: 25px;
}

.apply-card p {
    line-height: 1.9;
    color: #555;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

/* ================= INPUTS (FIXED - IMPORTANT) ================= */

.input,
textarea {
    width: 100%;
    padding: 14px 16px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    background: #fff;
}

.input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* ================= BUTTONS ================= */

.apply-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.cta-btn {
    background: var(--accent);
    color: black;
    border: none;
    padding: 18px 35px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.secondary-btn {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 18px 35px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
}

.secondary-btn:hover {
    background: var(--primary);
    color: white;
}

/* ================= SECURITY BADGE ================= */

.security-badge {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 28px;
    background: #f1f5f9;
    border-radius: 999px;
    font-weight: 700;
    color: var(--primary);
}

/* ================= STEP SYSTEM ================= */

.apply-step {
    display: none;
}

.apply-step.active {
    display: block;
}

/* ================= PAYMENT STATES (NEW - IMPORTANT) ================= */

.success-box {
    background: #e8fff1;
    border: 1px solid #34d399;
    color: #065f46;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.error-box {
    background: #fff1f2;
    border: 1px solid #fb7185;
    color: #9f1239;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
}

.warning-box {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
}

/* ================= BUTTON LOADING STATE ================= */

.cta-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ================= RESPONSIVE ================= */

@media(max-width:900px){
    .hero-content h2{font-size:2rem;}
    .apply-card{padding:35px;}
    .progress-bar{flex-wrap:wrap;gap:12px;}
}

@media(max-width:600px){
    .apply-buttons{flex-direction:column;}
    .cta-btn,.secondary-btn{width:100%;}
    .hero-content h2{font-size:1.6rem;}
}