/* ==========================================================================
   YBE (Young Black Entrepreneurs) - Responsive Multi-Step Application Form Styles
   ========================================================================== */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Custom Properties (Premium Dark Gold Theme) --- */
:root {
    --bg-dark: #09090b;          /* Deep Obsidian background */
    --card-bg: rgba(24, 24, 27, 0.65); /* Sleek Zinc/Charcoal glassmorphic background */
    --card-border: rgba(255, 255, 255, 0.08); /* Subtle layout border */
    --text-primary: #fafafa;     /* Crisp high-contrast text */
    --text-secondary: #a1a1aa;   /* Muted gray text */
    --accent-gold: #d4af37;      /* Primary Gold Accent */
    --accent-gold-hover: #b89327;/* Slightly darker gold for interactive states */
    --input-bg: rgba(255, 255, 255, 0.03); /* Input field fill */
    --input-focus: rgba(212, 175, 55, 0.15); /* Soft gold glow */
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-speed: 0.25s;
}

/* --- Document Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* --- Premium Background Glow Elements --- */
.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, rgba(0,0,0,0) 70%);
    top: -50px;
    right: -50px;
    z-index: -1;
    pointer-events: none;
}

/* --- Header Styling --- */
.header {
    padding: 1.5rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--card-border);
    text-align: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.gold-dot {
    color: var(--accent-gold);
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Page Layout Grid (Fluid Desktop-to-Mobile Columns) --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr; /* Stacked by default for mobile */
    gap: 3rem;
    align-items: center;
}

/* --- Hero Content --- */
.hero-section {
    text-align: center;
}

.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
}

.hero-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.value-props {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.prop-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.prop-icon {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 0.5rem;
    border-radius: 8px;
    line-height: 1;
}

.prop-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.prop-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Glassmorphic Form Container --- */
.form-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem; /* Cozy padding for smaller mobile screens */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* --- Step Indicator (Highly Responsive) --- */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-speed) ease;
    flex-shrink: 0; /* Prevents dots from getting crushed/deformed on tiny phones */
}

.step.active {
    background: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.step-line {
    width: 40px; /* Shorter, flexible lines for small screens */
    height: 1px;
    background: var(--card-border);
}

/* --- Form Fields & Grid Groups --- */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn var(--transition-speed) ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    border-left: 3px solid var(--accent-gold);
    padding-left: 0.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

input, select {
    background-color: var(--input-bg);
    border: 1px solid var(--card-border);
    padding: 0.8rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

input:focus, select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--input-focus);
}

.input-help {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* --- Dropdown Select Styling & OS Fixes --- */
select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

select option {
    background-color: #18181b !important;
    color: var(--text-primary) !important;
    padding: 10px;
}

/* --- Buttons & Button Groups --- */
.btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: background-color var(--transition-speed) ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-next, .btn-submit {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-next:hover, .btn-submit:hover {
    background-color: var(--accent-gold-hover);
}

.btn-back {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-back:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-group {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Larger submission button next to 'Back' button */
    gap: 0.75rem;
}

.btn:active {
    transform: scale(0.98);
}

/* --- Footer --- */
.footer {
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   MEDIA QUERIES (Adaptive Responsive Logic)
   ========================================================================== */

/* Tablet and Small Screens (Landscape Mobile to Small Desktops) */
@media (min-width: 768px) {
    .header {
        padding: 2rem 5%;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }

    .container {
        grid-template-columns: 1.1fr 1fr; /* Side-by-side Desktop Grid */
        gap: 2.5rem;
        margin: 4rem auto;
        padding: 0 2rem;
    }

    .hero-section {
        text-align: left;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }

    .value-props {
        margin: 0;
    }

    .form-container {
        padding: 2.5rem;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .form-header p {
        font-size: 0.95rem;
    }

    .step {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .step-line {
        width: 60px;
    }
}

/* Large Screens (Widescreen layout refinement) */
@media (min-width: 1024px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    .container {
        gap: 5rem;
    }
    .glow-bg {
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(0,0,0,0) 70%);
        top: -100px;
        right: -100px;
    }
}