/* ============================================================================
   JOB APPLICATION FORM STYLES
   ============================================================================ */

body {
    font-family: 'Varela Round', sans-serif !important;
    background: var(--color-bg-light-gray);
    overflow-x: hidden;
}

i {
    font-family: 'Font Awesome 6 Free' !important;
}

a {
    font-family: 'Varela Round', sans-serif !important;
}

html, body {
    margin: 0;
    padding: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   PROGRESS BAR
   ───────────────────────────────────────────────────────────────────────── */
.progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: 4px;
    background: var(--color-border-light);
}

.progress-wrap .bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-alt));
    transition: width 0.3s ease;
}

/* ─────────────────────────────────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────────────────────────────────── */
.job-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 32px;
    align-items: start;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

main#main-content {
    padding-top: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   APPLICATION HEADER
   ───────────────────────────────────────────────────────────────────────── */
.app-header {
    background: linear-gradient(135deg, #f8f2f8 0%, #f5f0f8 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(110, 26, 132, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.app-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.app-header-left {
    flex: 1;
    min-width: 0;
}

.app-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: #6e1a84;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.breadcrumb-link:hover {
    color: #58126b;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #d1d5db;
    margin: 0 0.25rem;
}

.breadcrumb-current {
    color: #6b7280;
    font-weight: 600;
}

.app-header-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.app-header-subtitle {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.app-header-right {
    flex-shrink: 0;
}

.app-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f0f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e1a84;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-text {
    text-align: left;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .app-header {
        padding: 2rem 0;
    }

    .app-header-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .app-header-right {
        width: 100%;
    }

    .app-stat {
        width: 100%;
    }

    .app-header-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .app-header-subtitle {
        font-size: 0.95rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .app-header {
        padding: 1.5rem 0;
    }

    .app-header-content {
        padding: 0 16px;
    }

    .app-breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .app-header-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .app-header-subtitle {
        font-size: 0.9rem;
    }

    .app-stat {
        padding: 1rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .app-header {
        padding: 1rem 0;
    }

    .app-header-content {
        padding: 0 12px;
    }

    .app-header-title {
        font-size: 1.3rem;
    }

    .app-header-subtitle {
        font-size: 0.85rem;
    }

    .breadcrumb-separator {
        display: none;
    }

    .breadcrumb-link,
    .breadcrumb-current {
        font-size: 0.7rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   LEFT SIDEBAR NAVIGATION
   ───────────────────────────────────────────────────────────────────────── */
.side-nav {
    position: sticky;
    top: 90px;
    z-index: 100;
    background: var(--color-bg-white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.side-nav-header {
    background: linear-gradient(135deg, #6e1a84 0%, #8b3a9e 100%);
    color: var(--color-bg-white);
    padding: 22px 22px 18px;
}

.side-nav-header h6 {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff;
    opacity: 1;
}

.side-nav-header p {
    font-size: 0.75rem;
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.nav-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: 4px 0;
}

.nav-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #4b5563;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: var(--transition-fast);
    position: relative;
    cursor: pointer;
}

.nav-item-link:hover {
    background: var(--color-bg-light-purple);
    color: #6e1a84;
}

.nav-item-link.active {
    background: var(--color-bg-light-purple);
    color: #6e1a84;
    border-left-color: #6e1a84;
    border-left-width: 5px;
    padding-left: 21px;
}

.nav-item-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.nav-item-link .nav-check {
    margin-left: auto;
    color: var(--color-primary);
    font-size: 0.7rem;
    display: none;
}

.nav-item-link.filled .nav-check {
    display: inline;
}

/* ─────────────────────────────────────────────────────────────────────────
   SECTION CARDS
   ───────────────────────────────────────────────────────────────────────── */
.section-card {
    background: #f5f0f8;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.section-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-card-header {
    padding: 24px;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-bg-light-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.section-card-header h5 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.section-card-header p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 6px 0 0;
    font-weight: 600;
}

.section-card-body {
    padding: 28px;
}

/* ─────────────────────────────────────────────────────────────────────────
   FORM ELEMENTS
   ───────────────────────────────────────────────────────────────────────── */
.form-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.form-control,
.form-select {
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1.5px solid #e0e2e6;
    padding: 12px 16px;
    height: auto;
    color: #1f2937;
    font-weight: 500;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: #d1d5db;
}

.form-control::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 4px rgba(110, 26, 132, 0.15) !important;
    outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.input-group-text {
    border: 1.5px solid #d1d5db;
    border-right: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg) !important;
    background: #f9fafb;
    color: #6e1a84;
    font-weight: 600;
    padding: 0 14px;
    font-size: 1rem;
}

.input-group .form-control,
.input-group .form-select {
    border-left: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0 !important;
}

.input-group .form-control:focus,
.input-group .form-select:focus {
    border-left: none;
}

.form-hint {
    font-size: 0.78rem;
    color: #4b5563;
    margin-top: 5px;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────
   FILE DROP ZONE
   ───────────────────────────────────────────────────────────────────────── */
.file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 2px dashed #e5e7eb;
    border-radius: 16px;
    padding: 48px 32px;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-drop:hover {
    border-color: #6e1a84;
    background: rgba(110, 26, 132, 0.02);
    box-shadow: 0 4px 12px rgba(110, 26, 132, 0.1);
}

.file-drop-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e1a84 0%, #8b3a9e 100%);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-drop-icon i {
    color: #ffffff !important;
    font-weight: 900;
}

.file-drop-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 6px;
}

.file-drop-text span {
    font-size: 0.8rem;
    color: #374151;
    font-weight: 800;
}

.file-selected .file-drop {
    border-color: var(--color-primary);
    border-style: solid;
    background: rgba(110, 26, 132, 0.06);
}

.file-selected .file-drop-icon {
    background: linear-gradient(135deg, #6e1a84 0%, #8b3a9e 100%);
    color: var(--color-bg-white);
}

/* ─────────────────────────────────────────────────────────────────────────
   CUSTOM QUESTION BLOCKS
   ───────────────────────────────────────────────────────────────────────── */
.cq-block {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cq-block:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(110, 26, 132, 0.1);
}

.cq-label {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
    color: #1f2937;
}

.q-badge {
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────────────────────────────────
   SUBMIT SECTION
   ───────────────────────────────────────────────────────────────────────── */
.submit-section {
    padding: 32px;
}

.btn-apply {
    background: #6e1a84 !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-apply:hover {
    background: #5a1269 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(110, 26, 132, 0.25) !important;
    color: white !important;
    text-decoration: none;
}

.btn-apply:focus {
    outline: 2px solid #6e1a84 !important;
    outline-offset: 2px !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   MOBILE HEADER (HIDDEN BY DEFAULT)
   ───────────────────────────────────────────────────────────────────────── */
.mobile-header {
    display: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-alt));
    color: var(--color-bg-white);
    padding: 18px 20px 14px;
    text-align: center;
}

.mobile-header h6 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff;
    opacity: 1;
}

.mobile-header p {
    font-size: 0.72rem;
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────
   MOBILE NAVIGATION
   ───────────────────────────────────────────────────────────────────────── */
.mobile-nav {
    display: none;
    background: var(--color-bg-white);
    border-bottom: 2px solid var(--color-border-light);
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 4px;
    z-index: 1040;
    gap: 6px;
    scrollbar-width: none;
}

.mobile-nav::-webkit-scrollbar {
    display: none;
}

.mobile-nav .mob-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    color: #4b5563;
    background: #f3f4f6;
    text-decoration: none;
    white-space: nowrap;
    border: 1.5px solid transparent;
    transition: var(--transition-fast);
    flex-shrink: 0;
    cursor: pointer;
}

.mobile-nav .mob-link.active {
    background: var(--color-bg-light-purple);
    color: #6e1a84;
    border-color: #6e1a84;
}

.mobile-nav .mob-link i {
    font-size: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   HEADING HIERARCHY
   ───────────────────────────────────────────────────────────────────────── */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    color: #333;
}

h5,
h6 {
    color: #333;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET (992px and below)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .side-nav {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .mobile-nav {
        display: flex;
    }

    .job-layout {
        grid-template-columns: 1fr;
        padding: 20px 16px 60px;
        gap: 0;
    }

    .section-card {
        border-radius: 14px;
    }

    .section-card-header {
        padding: 18px 20px 14px;
    }

    .section-card-body {
        padding: 20px;
    }

    .submit-section {
        padding: 20px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE (576px and below)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .job-layout {
        padding: 16px 12px 60px;
    }

    .section-card {
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .section-card-header {
        padding: 14px 14px 12px;
        gap: 10px;
    }

    .section-card-body {
        padding: 14px;
    }

    .section-card-header h5 {
        font-size: 0.88rem;
    }

    .section-card-header p {
        font-size: 0.72rem;
    }

    .section-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.8rem;
    }

    .form-control,
    .form-select {
        font-size: 0.85rem;
        padding: 10px 12px;
        width: 100%;
    }

    .input-group-text {
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .file-drop {
        padding: 32px 24px;
        gap: 12px;
    }

    .file-drop-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .file-drop-text strong {
        font-size: 0.9rem;
    }

    .file-drop-text span {
        font-size: 0.75rem;
    }

    .cq-block {
        padding: 12px;
    }

    .submit-section {
        padding: 14px;
    }

    .mobile-nav {
        padding: 8px;
        gap: 5px;
    }

    .mobile-nav .mob-link {
        padding: 6px 10px;
        font-size: 0.68rem;
    }

    .form-hint {
        font-size: 0.72rem;
    }

    .btn-apply {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE — EXTRA SMALL (360px and below)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 360px) {
    .job-layout {
        padding: 12px 10px 50px;
    }

    .section-card-header {
        padding: 12px 12px 10px;
    }

    .section-card-body {
        padding: 12px;
    }

    .form-control,
    .form-select {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .file-drop {
        padding: 10px;
    }

    .submit-section {
        padding: 12px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────────────────────────────────────── */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   INPUT GROUPS & SUFFIXES
   ───────────────────────────────────────────────────────────────────────── */
.unit-suffix {
    border-left: none !important;
    border-right: 1.5px solid #e5e7eb !important;
    border-radius: 0 10px 10px 0 !important;
}

.currency-symbol {
    font-weight: 700 !important;
}

/* Icon styling for input groups */
.icon-input-group {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827 !important;
    font-weight: 900 !important;
    font-size: 1.1rem;
}

.icon-input-group i {
    color: #111827 !important;
    font-weight: 900;
    font-family: 'Font Awesome 6 Brands' !important;
}

.icon-portfolio {
    color: #6e1a84 !important;
    font-weight: 900 !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   FORM SECTIONS
   ───────────────────────────────────────────────────────────────────────── */
.submit-section-border {
    border-color: #f3f4f6 !important;
}

.form-footer-text {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ─────────────────────────────────────────────────────────────────────────
   HONEYPOT FIELD
   ───────────────────────────────────────────────────────────────────────── */
.honeypot {
    display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   FIELD ERROR STYLES
   ───────────────────────────────────────────────────────────────────────── */
.field-error {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────────────────────────────────────
   SWEETALERT CUSTOM STYLES
   ───────────────────────────────────────────────────────────────────────── */
.swal-wide {
    width: 90vw !important;
    max-width: 600px !important;
}

@media (max-width: 640px) {
    .swal-wide {
        width: 85vw !important;
        max-width: 100% !important;
    }
}

/* Alert styling */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
    font-size: 0.8rem;
}

.alert-info {
    background: #f0f8ff !important;
    color: #0c4a8a;
    border-radius: 10px;
}

/* Toast styling */
.toast-container {
    z-index: 9999 !important;
}

.toast {
    border-radius: 12px;
    background: #6e1a84 !important;
}

.form-check-input:checked {
    background-color: #6e1a84;
    border-color: #6e1a84;
}

.form-check-input:focus {
    border-color: #6e1a84;
    box-shadow: 0 0 0 0.25rem rgba(110, 26, 132, 0.25);
}

.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}
