/* FONT */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ROOT */

:root {
    --primary: #05339C;
    --primary-soft: #3b82f6;
    --primary-light: #eff6ff;
    --bg: #eef4ff;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #dbeafe;
}

/* BODY */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(180deg, #eef4ff, #f8fafc);
    color: var(--text);
}

/* CONTAINER */

#main-container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

/* HERO */

.hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
}

.logo {
    width: 120px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--muted);
    font-size: 15px;
}

/* GRID */

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

/* CARD */

.position-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    transition: 0.25s;
}

.position-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.08);
}

.position-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

/* DETAIL */

.job-details {
    display: none;
    margin-top: 10px;
}

.position-card.active .job-details {
    display: block;
}

.job-details ul {
    padding-left: 18px;
    font-size: 14px;
    color: var(--muted);
}

.job-details li {
    margin-bottom: 6px;
}

/* BUTTON INLINE */

.apply-inline-btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    transition: 0.2s;
}

.apply-inline-btn:hover {
    background: var(--primary-soft);
}

/* CTA BUTTON */

.apply-btn {
    margin-top: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 14px 24px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    transition: 0.2s;
}

.apply-btn:hover {
    background: var(--primary-soft);
}

/* ========================= */

/* FORM SECTION */

/* ========================= */

#typeform-container {
    background: var(--card);
    padding: 35px;
    border-radius: 16px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.08);
    position: relative;
    display: none;
}

/* PROGRESS */

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e5edff;
    border-radius: 999px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    transition: 0.3s;
}

/* STEP */

.step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LABEL */

label {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

/* INPUT */

.input-group {
    margin-bottom: 10px;
}

input,
select {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f9fbff;
    transition: 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

/* ERROR */

.error-msg {
    font-size: 12px;
    color: #dc2626;
    margin-top: 5px;
    display: none;
}

/* NAV BUTTON */

.nav-btns {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* BUTTON */

button {
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    transition: 0.2s;
}

.btn-primary:hover {
    background: var(--primary-soft);
}

.btn-secondary {
    background: #e5e7eb;
    color: #334155;
    padding: 12px 18px;
    border-radius: 10px;
}

/* FILE UPLOAD */

.file-upload-wrapper {
    position: relative;
    border: 2px dashed #c7d2fe;
    padding: 30px 20px;
    border-radius: 14px;
    text-align: center;
    background: #f8fbff;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* HOVER */

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: #eef4ff;
}

/* ICON (fake via before) */

.file-upload-wrapper::before {
    content: "⬆️";
    display: block;
    font-size: 26px;
    margin-bottom: 10px;
}

/* TEXT */

.file-upload-wrapper div {
    font-size: 14px;
    color: var(--muted);
}

/* HIDE INPUT */

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* BACK BUTTON */

.back-to-landing {
    margin-bottom: 20px;
    color: var(--muted);
    background: none;
    font-size: 14px;
}

.file-placeholder {
    font-size: 14px;
    color: var(--muted);
}

.file-info {
    margin-top: 12px;
    font-size: 14px;
}

/* SUCCESS FILE */

.file-success {
    background: #ecfdf5;
    color: #16a34a;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ERROR FILE */

#errorFile.visible {
    display: block;
}

/* LOADER */

#loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 16px;
}

/* SPINNER */

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner.small {
    width: 25px;
    height: 25px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* SUCCESS */

#success-message {
    display: none;
    text-align: center;
}

.success-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* MOBILE */

@media(max-width:600px) {
    #typeform-container {
        padding: 20px;
    }
    .hero h1 {
        font-size: 24px;
    }
}

#loader-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 16px;
    z-index: 10;
}