/* ==========================================================================
   IYIMHHSE Internship Portal — Free, Expansive & Responsive Glass Theme
   Palette: Page BG: #1e1d1a | Accent: #94b49f | Glass Section: rgba(26,25,22,0.65)
   ========================================================================== */

:root {
    --bg-page: #1e1d1a;
    --bg-cream: #1e1d1a;
    --bg-gradient: radial-gradient(circle at 50% -10%, #2e2a24 0%, #1c1b18 50%, #121110 100%);
    --card-glass-bg: rgba(26, 25, 22, 0.65);
    --card-bg-white: #121110;
    --card-inner-bg: #121110;
    --card-border: rgba(251, 249, 241, 0.14);
    --accent-matcha: #94b49f;
    --accent-matcha-hover: #b8cfbf;
    --text-primary: #fbf9f1;
    --text-charcoal: #fbf9f1;
    --text-secondary: #d1cfc7;
    --text-muted: #a3a19c;
    --input-bg: #121110;
    --input-border: rgba(251, 249, 241, 0.16);
    --input-focus-glow: rgba(148, 180, 159, 0.25);
    --error-red: #f87171;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --y2k-border: 2px solid rgba(251, 249, 241, 0.22);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: 100vh;
    padding-top: 105px;
    padding-bottom: 0;
}

/* ==========================================================================
   1. NAVBAR STYLING (LOGO LEFT, CENTERED TITLE, BUTTON RIGHT)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
    background-color: #1e1d1a;
    border-bottom: var(--y2k-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    box-sizing: border-box;
}

.nav-logo-block {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px !important;
}

.logo-box-image-wrapper {
    width: 52px;
    height: 52px;
    border: var(--y2k-border);
    border-radius: 50%;
    overflow: hidden;
    background-color: #d2d7c4 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-box-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.nav-logo-block .logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: var(--text-primary);
}

.logo-text span {
    font-size: 12px;
    font-weight: 600;
    color: #a3a19c;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
}

.nav-center-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.btn-nav-fuel {
    background-color: var(--accent-matcha) !important;
    color: #121110 !important;
    font-family: var(--font-heading);
    font-weight: 700 !important;
    font-size: 13.5px !important;
    padding: 10px 22px !important;
    border-radius: 100px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease !important;
    white-space: nowrap;
}

.btn-nav-fuel:hover {
    background-color: var(--accent-matcha-hover) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   2. STAGE & HERO BANNER
   ========================================================================== */
.form-container {
    width: 100%;
    max-width: 880px;
    margin: 24px auto 0 auto;
    padding: 0 20px;
}

.hero-banner {
    background: rgba(30, 29, 26, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px 36px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(148, 180, 159, 0.12);
    border: 1px solid rgba(148, 180, 159, 0.3);
    color: var(--accent-matcha);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Perks Grid */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.perk-card {
    background: rgba(18, 17, 16, 0.6);
    border: 1px solid rgba(148, 180, 159, 0.25);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.perk-icon {
    font-size: 18px;
    color: var(--accent-matcha);
    margin-top: 2px;
    flex-shrink: 0;
}

.perk-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.perk-card span {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.hero-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(251, 249, 241, 0.1);
    padding-top: 16px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}

.autosave-status {
    color: var(--accent-matcha);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.required-notice {
    color: var(--text-muted);
}

.required-star {
    color: var(--error-red);
    font-weight: bold;
}

/* ==========================================================================
   3. FLUID GLASS FORM SECTIONS (UN-TRAPPED LAYOUT)
   ========================================================================== */
.form-section {
    background: var(--card-glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px 36px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-matcha);
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(251, 249, 241, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 2-Column Responsive Grid */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group.full-width {
    grid-column: 1 / -1;
}

.field-label {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Inputs & Textareas */
.form-input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14.5px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-textarea {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14.5px;
    padding: 14px 16px;
    outline: none;
    resize: vertical;
    min-height: 95px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent-matcha);
    box-shadow: 0 0 0 3px var(--input-focus-glow);
    background-color: #171614;
}

/* Interactive Chip Radio Buttons */
.chip-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.chip-option {
    position: relative;
    cursor: pointer;
}

.chip-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 17, 16, 0.7);
    border: 1px solid rgba(251, 249, 241, 0.16);
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    user-select: none;
}

.chip-option:hover .chip-btn {
    background: rgba(251, 249, 241, 0.08);
    border-color: var(--accent-matcha);
    color: var(--text-primary);
}

.chip-option input[type="radio"]:checked ~ .chip-btn {
    background: rgba(148, 180, 159, 0.25);
    border-color: var(--accent-matcha);
    color: var(--text-primary);
}

.inline-chip-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--input-border);
    color: var(--text-primary);
    font-size: 13.5px;
    margin-left: 4px;
    padding: 2px 4px;
    outline: none;
    width: 140px;
}

.inline-chip-input:focus {
    border-bottom-color: var(--accent-matcha);
}

/* Errors */
.field-group.has-error .form-input,
.field-group.has-error .form-textarea {
    border-color: var(--error-red) !important;
}

.error-text {
    font-size: 12.5px;
    color: var(--error-red);
    margin-top: 6px;
    display: none;
    font-weight: 600;
}

.field-group.has-error .error-text {
    display: block;
}

/* Clean Turnstile Container */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    padding: 12px;
    margin-bottom: 20px;
}

.turnstile-wrapper iframe, .cf-turnstile {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Normal Action Buttons */
.form-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 60px;
    gap: 20px;
}

.btn-submit-cool {
    background-color: var(--accent-matcha);
    border: none;
    border-radius: 100px;
    color: #121110;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    padding: 14px 36px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-submit-cool:hover {
    background-color: var(--accent-matcha-hover);
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-submit-cool:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-clear-cool {
    background: transparent;
    border: 1px solid rgba(251, 249, 241, 0.2);
    border-radius: 100px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-clear-cool:hover {
    background: rgba(251, 249, 241, 0.08);
    color: var(--text-primary);
    border-color: var(--accent-matcha);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 17, 16, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #1a1916;
    border: 2px solid var(--accent-matcha);
    border-radius: 24px;
    box-shadow: 8px 8px 0px var(--accent-matcha);
    padding: 40px 32px;
    width: 90%;
    max-width: 480px;
    text-align: center;
}

.modal-icon {
    font-size: 56px;
    color: var(--accent-matcha);
    margin-bottom: 16px;
}

.modal-card h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.app-ref-box {
    background: #121110;
    border: 1px dashed var(--accent-matcha);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-ref-box strong {
    font-size: 18px;
    color: var(--accent-matcha);
    font-family: monospace;
}

.modal-subtext {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-modal-close {
    background: var(--accent-matcha);
    border: none;
    border-radius: 100px;
    color: #121110;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    padding: 12px 30px;
    cursor: pointer;
    margin-top: 14px;
    transition: all 0.2s ease;
}

.btn-modal-close:hover {
    background: var(--accent-matcha-hover);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
    }
    .nav-center-title {
        display: none;
    }
    .form-container {
        padding: 0 12px;
        margin-top: 16px;
    }
    .hero-banner {
        padding: 24px 20px;
        border-radius: 18px;
    }
    .hero-title {
        font-size: 26px;
    }
    .perks-grid {
        grid-template-columns: 1fr;
    }
    .form-section {
        padding: 22px 20px;
        border-radius: 18px;
    }
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .form-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-submit-cool {
        width: 100%;
        justify-content: center;
    }
    .btn-clear-cool {
        width: 100%;
        justify-content: center;
    }
    .footer-sub-bar {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        padding: 20px 0;
    }
    .footer-legal-links {
        justify-content: center;
    }
}
