/* =========================================
   ASCEND SERVICES — CAREER PORTAL
   Premium Orange Theme | Clean & Standard
   ========================================= */

:root {
    --primary: #f27a1a;
    --primary-dark: #d96a10;
    --primary-light: #ff922b;
    --primary-deep: #e06610;
    --primary-soft: rgba(242, 122, 26, 0.10);
    --primary-glow: rgba(242, 122, 26, 0.28);
    --dark: #0f172a;
    --dark-mid: #1e293b;
    --dark-light: #334155;
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-50: #f1f5f9;
    --gray-100: #e2e8f0;
    --gray-200: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --green: #22c55e;
    --green-bg: #f0fdf4;
    --red: #ef4444;
    --red-bg: #fef2f2;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.10);
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--off-white);
    color: var(--gray-800);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--primary); color: #fff; }
html { scroll-behavior: smooth; }

/* ============ NAVBAR ============ */
.navbar.bg-main {
    background: var(--dark) !important;
    padding: 14px 0;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
    animation: navSlide 0.5s var(--ease);
}

@keyframes navSlide {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.navbar .navbar-brand {
    font-size: 15px;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.navbar .navbar-brand i {
    font-size: 20px;
    color: var(--primary);
}

.accent-badge {
    background: rgba(242, 122, 26, 0.12);
    color: var(--primary-light);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    border: 1px solid rgba(242, 122, 26, 0.18);
}

/* ============ HERO ============ */
.hero-section {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    padding: 60px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 50%, rgba(242, 122, 26, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(242, 122, 26, 0.04) 0%, transparent 50%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 48px;
    background: var(--off-white);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

.hero-title {
    font-size: clamp(24px, 4.5vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    animation: heroFadeUp 0.7s var(--ease) 0.15s both;
}

.hero-accent {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.4;
}

.hero-section p {
    animation: heroFadeUp 0.7s var(--ease) 0.3s both;
}

@keyframes heroFadeUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============ SECTION CARDS ============ */
.section-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
    border: 1px solid var(--gray-100);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
    opacity: 0;
    transform: translateY(18px);
    animation: cardReveal 0.55s var(--ease) forwards;
}

.section-card:nth-child(1) { animation-delay: 0.06s; }
.section-card:nth-child(2) { animation-delay: 0.14s; }
.section-card:nth-child(3) { animation-delay: 0.22s; }
.section-card:nth-child(4) { animation-delay: 0.30s; }

@keyframes cardReveal {
    to { opacity: 1; transform: translateY(0); }
}

.section-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(242, 122, 26, 0.15);
    transform: translateY(-1px);
}

.section-header {
    background: var(--dark);
    color: #fff;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.section-header i {
    color: var(--primary);
    font-size: 17px;
}

.section-body {
    padding: 24px;
}

/* ============ FORM CONTROLS ============ */
.form-control,
.form-select {
    font-family: var(--font);
    padding: 11px 14px;
    font-size: 14px;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-800);
    transition: all 0.2s var(--ease);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
    background: var(--white);
    outline: none;
}

.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: var(--gray-200);
}

.form-control::placeholder {
    color: var(--gray-400);
    font-size: 13px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* ============ QUALIFICATION BLOCKS ============ */
.qual-block {
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-100);
}

.qual-block:last-child { border-bottom: none; padding-bottom: 0; }
.qual-block:first-child { padding-top: 0; }
.qual-block h6 { font-size: 14px; margin-bottom: 14px; }
.text-main { color: var(--primary) !important; }

/* Custom Toggle Switch */
.form-check.form-switch {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-check.form-switch .form-check-input {
    width: 46px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    border: none;
    background-color: var(--gray-200);
    background-image: none;
    border-radius: 50px;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.25s var(--ease);
}

.form-check.form-switch .form-check-input::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    top: 3px;
    left: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    transition: transform 0.25s var(--ease);
}

.form-check.form-switch .form-check-input:checked {
    background-color: var(--primary);
}

.form-check.form-switch .form-check-input:checked::before {
    transform: translateX(22px);
}

.form-check.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-check-label {
    font-size: 15px;
    cursor: pointer;
}

/* Hidden Fields */
.qual-fields {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), padding 0.35s var(--ease);
    padding-top: 0;
}

.qual-fields.open {
    max-height: 300px;
    opacity: 1;
    padding-top: 14px;
}

/* ============ EXPERIENCE ============ */
.btn-outline-main {
    border: 1.5px solid var(--gray-100);
    color: var(--gray-600);
    background: var(--white);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.25s var(--ease);
}

.btn-outline-main:hover {
    border-color: var(--gray-200);
    color: var(--gray-800);
    background: var(--gray-50);
}

.btn-check:checked + .btn-outline-main {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark);
    box-shadow: 0 0 0 3px var(--primary-soft);
    font-weight: 700;
}

.btn-check:checked + .btn-outline-main i {
    color: var(--primary);
}

.exp-fields {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin 0.3s var(--ease);
}

.exp-fields.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 16px;
}

/* ============ FILE UPLOAD ============ */
.file-upload-box {
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 44px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    background: var(--gray-50);
    transition: all 0.3s var(--ease);
}

.file-upload-box:hover {
    border-color: var(--primary);
    background: rgba(242, 122, 26, 0.04);
}

.file-upload-box.dragover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: scale(1.005);
}

.file-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-icon {
    font-size: 42px;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
    transition: transform 0.3s var(--ease);
}

.file-upload-box:hover .file-upload-icon {
    transform: translateY(-5px) scale(1.05);
}

.file-upload-box .fw-bold { font-size: 15px; color: var(--gray-800); }
.file-upload-box small { font-size: 12px; color: var(--gray-400); }

.file-name {
    display: none;
    font-size: 13px;
    font-weight: 600;
}

.file-name.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============ SUBMIT BUTTON ============ */
.btn-main {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 44px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 16px var(--primary-glow);
    letter-spacing: 0.3px;
    position: relative;
}

.btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
    color: #fff;
}

.btn-main:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-submit { min-width: 220px; }

/* ============ SUCCESS OVERLAY ============ */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-box {
    max-width: 420px;
    width: 92%;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl) !important;
    transform: scale(0.9) translateY(12px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-overlay.show .success-box {
    transform: scale(1) translateY(0);
}

.success-icon-circle {
    width: 72px;
    height: 72px;
    background: var(--green-bg);
    border-radius: 50%;
}

.success-icon { font-size: 36px; }

.btn-success-ok {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font);
    transition: all 0.25s var(--ease);
}

.btn-success-ok:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: #fff;
}

/* ============ FOOTER ============ */
.footer-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.45);
    padding: 20px 0;
    font-size: 13px;
}

.footer-bar a {
    color: var(--primary);
    transition: color 0.2s var(--ease);
    text-decoration: none;
}

.footer-bar a:hover {
    color: var(--primary-light);
}

/* ============ ANIMATIONS ============ */
.delay-1 { animation-delay: 0.08s !important; }
.delay-2 { animation-delay: 0.12s !important; }
.delay-3 { animation-delay: 0.16s !important; }
.delay-4 { animation-delay: 0.20s !important; }
.delay-5 { animation-delay: 0.24s !important; }

/* ============ VALIDATION ============ */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--red) !important;
    background: var(--red-bg);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 767px) {
    .hero-section { padding: 44px 0 64px; }
    .hero-title { font-size: 22px; }
    .section-header { padding: 14px 18px; font-size: 14px; }
    .section-body { padding: 18px; }
    .btn-submit { width: 100%; }
}

@media (max-width: 575px) {
    .form-control, .form-select { font-size: 14px; padding: 10px 12px; }
    .section-card { border-radius: var(--radius-lg); }
    .file-upload-box { padding: 32px 16px; }
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}