/* ============================================
   MyCrediBro — Apply Now Page Styles
   ============================================ */

/* Solid gold text for AirPods */
.text-gold {
    color: #FFD700;
    font-weight: 800;
}

/* ====== HERO SECTION ====== */
.apply-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: #000;
}

/* AirPods Video as Full Background */
.apply-hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.airpods-bg-video {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 65%;
    height: auto;
    min-height: 115%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8) saturate(1.1);
    /* Mask all 4 edges directly on the video for seamless blending */
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, black 30%, black 85%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 15%, black 80%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image:
        linear-gradient(to right, transparent 0%, black 30%, black 85%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 15%, black 80%, transparent 100%);
    mask-composite: intersect;
}

/* Overlay divs kept as fallback but hidden — mask handles blending */
.airpods-bg-overlay,
.airpods-bg-gradient-left,
.airpods-bg-gradient-bottom {
    display: none;
}

.apply-hero-video-bg::before,
.apply-hero-video-bg::after {
    display: none;
}

.apply-hero-inner {
    position: relative;
    z-index: 4;
    max-width: 580px;
}

.apply-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(30, 30, 40, 1) 0%, rgba(0, 0, 0, 1) 70%);
}

.apply-hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
}

.apply-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.apply-hero-content {
    color: #fff;
}

.apply-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 180, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.apply-offer-badge .badge-pulse {
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.apply-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.apply-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.apply-trust-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 36px;
}

.trust-point {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-point i {
    color: #4ade80;
    font-size: 1rem;
}

/* Hero CTA Row */
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.airpods-free-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffd700;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 100px;
    animation: tagGlow 3s ease-in-out infinite;
}

@keyframes tagGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.1); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
}

/* ====== PROCESS SECTION ====== */
.apply-process {
    padding: 60px 0;
    background: var(--white);
}

.process-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.process-card {
    position: relative;
    background: #fafafa;
    border: 1.5px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    flex: 1;
    max-width: 240px;
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.process-card.highlight-card {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #86efac;
}

.process-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 16px;
}

.highlight-card .process-icon {
    background: #16a34a;
}

.process-number {
    position: absolute;
    top: -12px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.process-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.process-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.official-badge {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #16a34a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.3px;
}

.process-connector {
    color: var(--gray-300);
    font-size: 1.2rem;
    padding: 0 8px;
}

/* ====== BANK TRUST BAR ====== */
.apply-banks {
    padding: 40px 0;
    background: #fafafa;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.banks-title {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.banks-title i { margin-right: 8px; }

.banks-logos {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.banks-track {
    display: flex;
    gap: 48px;
    align-items: center;
    animation: scrollBanks 20s linear infinite;
    width: max-content;
}

.banks-track img {
    height: 40px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.banks-track img:hover {
    opacity: 1;
    filter: none;
}

@keyframes scrollBanks {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ====== FORM SECTION ====== */
.apply-form-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
}

.apply-form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s ease;
}

.step-dot.active .step-num,
.step-dot.completed .step-num {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.step-dot.completed .step-num {
    background: #16a34a;
}

.step-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 600;
    transition: color 0.3s;
}

.step-dot.active .step-label {
    color: var(--dark);
}

.step-line {
    width: 100px;
    height: 3px;
    background: var(--gray-200);
    border-radius: 3px;
    margin: 0 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.step-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.step-line.filled::after {
    width: 100%;
}

/* Form steps */
.form-step {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--gray-100);
}

.step-title i {
    color: var(--primary);
    margin-right: 10px;
}

/* Auto-fill badge */
.auto-fill-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: #16a34a;
    font-weight: 600;
    display: none;
    gap: 4px;
    align-items: center;
    background: #f0fdf4;
    padding: 3px 8px;
    border-radius: 4px;
}

.auto-fill-badge.visible {
    display: inline-flex;
}

/* Form button row */
.form-btn-row {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.form-btn-row .btn {
    flex: 1;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gray-300);
    color: var(--dark);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* Form trust bar */
.form-trust-bar {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.form-trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.form-trust-bar .trust-item i {
    color: #16a34a;
}

/* ====== BANK PROCESS HIGHLIGHT ====== */
.bank-process-highlight {
    padding: 60px 0;
    background: #fff;
}

.highlight-card-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 40%, #fff 100%);
    border: 1.5px solid #86efac;
    border-radius: 20px;
    padding: 40px;
}

.highlight-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.highlight-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.highlight-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.highlight-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.highlight-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #16a34a;
    font-weight: 600;
}

/* ====== SUCCESS MODAL ====== */
.apply-success-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.apply-success-modal.show {
    display: flex;
}

.success-modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 620px;
    width: 100%;
    text-align: center;
    animation: modalPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.85) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.success-check {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}

.success-ring {
    position: absolute;
    inset: -8px;
    border: 3px solid rgba(22, 163, 74, 0.2);
    border-radius: 50%;
    animation: ringPulse 2s ease-out infinite;
}

@keyframes ringPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.success-modal-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 28px;
}

.success-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
    text-align: left;
}

.success-info-card {
    background: #f8f9fb;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
}

.success-info-card.highlight {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #86efac;
}

.success-info-card .info-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.success-info-card.highlight .info-icon {
    background: #16a34a;
}

.success-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    flex: 1;
    min-width: 200px;
}

.success-info-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    width: 100%;
    margin: 0;
}

.verified-stamp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #16a34a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

/* ====== NAVBAR SOLID (for apply page) ====== */
.navbar-solid {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .apply-hero-grid {
        gap: 40px;
    }
    .apply-hero h1 {
        font-size: 2.8rem;
    }
    .airpods-bg-video {
        width: 60%;
        right: -5%;
        -webkit-mask-image:
            linear-gradient(to right, transparent 0%, black 25%, black 80%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 15%, black 80%, transparent 100%);
        mask-image:
            linear-gradient(to right, transparent 0%, black 25%, black 80%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 15%, black 80%, transparent 100%);
    }
    .process-cards {
        flex-wrap: wrap;
        gap: 16px;
    }
    .process-connector {
        display: none;
    }
    .process-card {
        max-width: none;
        flex: 1 1 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .apply-hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    .apply-hero-inner {
        max-width: 100%;
        text-align: center;
    }
    .airpods-bg-video {
        width: 120%;
        right: -10%;
        top: 65%;
        opacity: 0.25;
        -webkit-mask-image:
            linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 10%, black 75%, transparent 100%);
        mask-image:
            linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 10%, black 75%, transparent 100%);
    }
    .airpods-bg-gradient-left {
        display: none;
    }
    .apply-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .apply-hero h1 {
        font-size: 2.2rem;
    }
    .apply-hero-subtitle {
        max-width: none;
    }
    .apply-trust-points {
        justify-items: center;
        grid-template-columns: 1fr;
    }
    .hero-cta-row {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .apply-hero-content .btn {
        width: 100%;
    }
    .process-card {
        flex: 1 1 100%;
        max-width: none;
    }
    .apply-form-wrapper {
        padding: 28px 20px;
    }
    .form-row-three {
        gap: 8px;
    }
    .highlight-card-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
    }
    .highlight-badges {
        justify-content: center;
    }
    .success-modal-content {
        padding: 32px 20px;
    }
    .success-modal-content h2 {
        font-size: 1.3rem;
    }
    .form-btn-row {
        flex-direction: column;
    }
    .form-trust-bar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .step-line {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .apply-hero h1 {
        font-size: 1.8rem;
    }
    .banks-track img {
        height: 30px;
    }
    .banks-track {
        gap: 32px;
    }
}
