/* ============================================
   PHELOAN ADVANCED FINANCE - CUSTOM STYLES
   Bootstrap 5 + Custom CSS
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --gold-500: #F5A623;
    --gold-400: #F7C948;
    --gold-600: #C47F0F;
    --gold-700: #A36A0C;
    --navy-900: #0A1628;
    --navy-800: #0D1F3C;
    --navy-700: #13203A;
    --navy-600: #1A2D4A;
    --white-10: rgba(255, 255, 255, 0.1);
    --white-50: rgba(255, 255, 255, 0.5);
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--navy-900);
    color: #FFFFFF;
    overflow-x: hidden;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--navy-900);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-500);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-600);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.gold-text {
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 50%, var(--gold-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold-500 { color: var(--gold-500); }
.text-gold-400 { color: var(--gold-400); }
.bg-gold-500 { background-color: var(--gold-500); }
.bg-gold-500\/20 { background-color: rgba(245, 166, 35, 0.2); }
.bg-gold-500\/10 { background-color: rgba(245, 166, 35, 0.1); }
.border-gold-500\/30 { border-color: rgba(245, 166, 35, 0.3); }
.bg-navy { background-color: var(--navy-900); }
.bg-navy-dark { background-color: #060F1E; }
.bg-gradient-dark { background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%); }
.bg-white-5 { background-color: rgba(255, 255, 255, 0.05); }
.border-white-10 { border-color: var(--white-10); }
.tracking-wider { letter-spacing: 0.05em; }
.hover-gold:hover { color: var(--gold-500) !important; }
.transition-all { transition: all 0.3s ease; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 50%, var(--gold-500) 100%);
    color: var(--navy-900);
    font-weight: 700;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
    padding: 12px 30px;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.5);
    color: var(--navy-900);
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 50%, var(--gold-400) 100%);
}

.btn-gold:active {
    transform: translateY(0px);
}

.btn-gold.btn-lg {
    padding: 14px 40px;
    font-size: 1.1rem;
}

.btn-gold.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-outline-gold {
    border: 2px solid var(--gold-500);
    color: var(--gold-500);
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-outline-gold:hover {
    background: var(--gold-500);
    color: var(--navy-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.2);
}

.btn-outline-gold.btn-lg {
    padding: 14px 40px;
    font-size: 1.1rem;
}

/* ============================================
   GLASS CARDS
   ============================================ */
.glass-card {
    background: rgba(19, 32, 58, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--white-10);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-500);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PROCEDURE STEPS - Enhanced Styles
   ============================================ */

/* Step cards hover effects */
.hover-bg-white-10:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.hover-bg-gold-500\/20:hover {
    background: rgba(245, 166, 35, 0.2) !important;
}

/* Step connector lines (optional) */
.step-connector {
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 30px;
    height: 2px;
    background: var(--gold-500);
    opacity: 0.3;
}

@media (max-width: 991.98px) {
    .step-connector::after {
        display: none;
    }
}

/* Timeline cards */
.timeline-card {
    border-left: 3px solid var(--gold-500);
    padding-left: 15px;
}

.timeline-card .step-number {
    background: var(--gold-500);
    color: var(--navy-900);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Processing badge pulse */
@keyframes processing-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.processing-pulse {
    animation: processing-pulse 1.5s ease-in-out infinite;
}

/* Critical phase indicator */
.critical-phase {
    position: relative;
    overflow: hidden;
}

.critical-phase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(245, 166, 35, 0.1) 100%);
    pointer-events: none;
}

/* ============================================
   PROCESSING TIMELINE STYLES
   ============================================ */

/* Timeline comparison cards */
.timeline-compare {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.timeline-card {
    flex: 1;
    min-width: 180px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid #6c757d;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.timeline-card.traditional {
    border-left-color: #dc3545;
}

.timeline-card.sba {
    border-left-color: #ffc107;
}

.timeline-card.pheloan {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.timeline-card .label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #FFFFFF;
}

.timeline-card .time {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.timeline-card.traditional .label { color: #dc3545; }
.timeline-card.sba .label { color: #ffc107; }
.timeline-card.pheloan .label { color: #28a745; }

/* Trust banner */
.trust-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
}

.trust-banner .badge-timeline {
    background: rgba(245,166,35,0.15);
    color: #F5A623;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.trust-banner .separator {
    color: rgba(255,255,255,0.2);
}

.trust-banner .text-compare {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.trust-banner .text-compare .slow {
    color: #dc3545;
    font-weight: 600;
}

.trust-banner .text-compare .fast {
    color: #28a745;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .timeline-compare {
        flex-direction: column;
    }
    
    .timeline-card {
        min-width: unset;
    }
    
    .trust-banner .text-compare {
        font-size: 0.75rem;
    }
}

/* ============================================
   APPLICATION FORM SPECIFIC STYLES
   ============================================ */

/* Form card hover effects for radio options */
.form-check .form-check-input {
    margin-top: 0.1rem;
}

.form-check .form-check-input:checked {
    background-color: var(--gold-500);
    border-color: var(--gold-500);
}

.form-check .form-check-input:checked + .form-check-label {
    color: var(--gold-500);
}

.form-check:has(.form-check-input:checked) {
    border-color: var(--gold-500) !important;
    background: rgba(245, 166, 35, 0.08) !important;
}

/* File upload styles */
.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--gold-500);
    background: rgba(245, 166, 35, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--gold-500);
    background: rgba(245, 166, 35, 0.1);
}

.file-preview-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.file-preview-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.file-preview-item .remove-file {
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
    margin-left: 4px;
    padding: 0 4px;
    transition: all 0.2s ease;
}

.file-preview-item .remove-file:hover {
    color: #ff6b6b;
    transform: scale(1.2);
}

/* Review section styles */
.review-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-section h6 {
    color: var(--gold-500);
    margin-bottom: 12px;
    font-weight: 600;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.review-value {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* Responsive adjustments for form */
@media (max-width: 767.98px) {
    .step-indicator .step-dot {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.6rem;
    }
    
    .review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .review-value {
        text-align: left;
        max-width: 100%;
    }
    
    .glass-card {
        padding: 16px !important;
    }
}

@media (max-width: 575.98px) {
    .step-indicator::before {
        top: 16px;
        left: 15px;
        right: 15px;
    }
    
    .step-dot {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .step-label {
        font-size: 0.5rem;
    }
}

/* ============================================
   BENEFIT CARDS
   ============================================ */
.benefit-card {
    background: rgba(19, 32, 58, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--white-10);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-500);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SECTOR ITEMS
   ============================================ */
.sector-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.sector-item:hover {
    background: rgba(245, 166, 35, 0.1) !important;
    border-color: var(--gold-500);
    transform: translateY(-4px);
}

.sector-item:hover p {
    color: var(--gold-500) !important;
}

/* ============================================
   TRUST LOGOS
   ============================================ */
.trust-logo {
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1);
}

.trust-logo:hover {
    opacity: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 166, 35, 0.3); }
    50% { box-shadow: 0 0 50px rgba(245, 166, 35, 0.6); }
}

.pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#hero .container {
    position: relative;
    z-index: 10;
}

#globe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#globe-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ============================================
   FORM STYLES (For apply.php)
   ============================================ */
.form-control-dark {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--white-10) !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

.form-control-dark:focus {
    border-color: var(--gold-500) !important;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.form-control-dark.is-invalid {
    border-color: #dc3545 !important;
}

.form-control-dark.is-valid {
    border-color: #198754 !important;
}

.form-label {
    color: var(--white-50);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-label .required {
    color: #dc3545;
    margin-left: 2px;
}

.form-select-dark {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--white-10) !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
}

.form-select-dark:focus {
    border-color: var(--gold-500) !important;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1) !important;
}

/* ============================================
   PROGRESS BAR (For multi-step form)
   ============================================ */
.progress-step {
    height: 4px;
    background: var(--white-10);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-step .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* ============================================
   FILE UPLOAD (For apply.php)
   ============================================ */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--white-10);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--gold-500);
    background: rgba(245, 166, 35, 0.05);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-preview .file-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px;
    font-size: 0.85rem;
}

.file-preview .file-item .remove-file {
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
    margin-left: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    #hero .display-2 {
        font-size: 2.75rem;
    }
    
    .btn-gold.btn-lg,
    .btn-outline-gold.btn-lg {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    #hero .display-2 {
        font-size: 2rem;
    }
    
    .glass-card,
    .benefit-card {
        padding: 20px !important;
    }
    
    .stat-counter {
        font-size: 2rem !important;
    }
    
    .trust-bar .d-flex {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .trust-logo {
        height: 18px !important;
    }
}

@media (max-width: 575.98px) {
    #hero .display-2 {
        font-size: 1.75rem;
    }
    
    .btn-gold,
    .btn-outline-gold {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero-cta {
        flex-direction: column;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    #hero {
        min-height: auto !important;
        padding: 40px 0 !important;
    }
    
    #globe-container {
        display: none !important;
    }
    
    .btn-gold,
    .btn-outline-gold {
        display: none !important;
    }
    
    .glass-card,
    .benefit-card {
        break-inside: avoid;
        border: 1px solid #ccc !important;
        background: white !important;
        color: black !important;
    }
    
    .gold-text {
        -webkit-text-fill-color: var(--gold-600) !important;
        color: var(--gold-600) !important;
    }
}