/* ==========================================================================
   apply.css — AGI-ONE Careers Application Wizard
   v1.0 · June 2026
   ========================================================================== */

body[data-marketing-shell="careers"] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.apply-page {
    background: linear-gradient(160deg, #f0f0fa 0%, #ffffff 50%, #f7f3ff 100%);
    flex: 1;
    padding: 3.5rem 0 1.5rem;
}

.apply-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.apply-page__back:hover { opacity: 1; }
.apply-page__back svg { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Wizard card
   -------------------------------------------------------------------------- */
.wizard-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.1), 0 1px 4px rgba(0,0,0,0.06);
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Progress bar
   -------------------------------------------------------------------------- */
.wizard-progress {
    padding: 1.5rem 2rem 0;
}
.wizard-progress__track {
    height: 4px;
    background: var(--gray-100);
    border-radius: 100px;
    overflow: hidden;
}
.wizard-progress__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.wizard-progress__label {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Step container — animated transitions
   -------------------------------------------------------------------------- */
.wizard-body {
    padding: 1.75rem 2.25rem 2.25rem;
    position: relative;
    min-height: 240px;
}

@media (max-width: 600px) {
    .wizard-body { padding: 1.25rem 1rem 1.75rem; }
    .apply-page { padding: 2.25rem 0 1.25rem; }
}

.wizard-step {
    /* rendered by JS, animation via class */
    animation: step-enter 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.wizard-step--exit {
    animation: step-exit 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.wizard-step--back-enter {
    animation: step-back-enter 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes step-enter {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes step-exit {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateX(-16px); }
}
@keyframes step-back-enter {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: none; }
}

/* Step header */
.wizard-step__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.6rem;
}
.wizard-step__question {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.35;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.wizard-step__hint {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Text / email input
   -------------------------------------------------------------------------- */
.wizard-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 0.625rem;
    font-size: 1rem;
    color: var(--gray-900);
    background: var(--gray-50);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    font-family: inherit;
}
.wizard-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
    background: #fff;
}
.wizard-input.has-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.wizard-input-hint {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--danger);
    display: none;
}
.wizard-input-hint.visible { display: block; }

/* --------------------------------------------------------------------------
   Radio group
   -------------------------------------------------------------------------- */
.wizard-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 0.25rem;
}
.wizard-radio-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}
.wizard-radio-option:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.03);
}
.wizard-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.wizard-radio-option__dot {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.wizard-radio-option__dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity 0.15s;
}
.wizard-radio-option__info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}
.wizard-radio-option__text {
    font-size: 0.95rem;
    color: var(--gray-700);
    font-weight: 500;
    line-height: 1.4;
}
.wizard-radio-option__sub {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 400;
}

/* Checked state */
.wizard-radio-option.is-checked {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.wizard-radio-option.is-checked .wizard-radio-option__dot {
    border-color: var(--primary);
    background: var(--primary);
}
.wizard-radio-option.is-checked .wizard-radio-option__dot::after {
    opacity: 1;
}
.wizard-radio-option.is-checked .wizard-radio-option__text {
    color: var(--gray-900);
}

/* --------------------------------------------------------------------------
   Select
   -------------------------------------------------------------------------- */
.wizard-select-wrap {
    position: relative;
}
.wizard-select {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 0.625rem;
    font-size: 0.95rem;
    color: var(--gray-900);
    background: var(--gray-50);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    font-family: inherit;
}
.wizard-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
    background: #fff;
}
.wizard-select-wrap::after {
    content: '';
    pointer-events: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background: var(--gray-400);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* --------------------------------------------------------------------------
   Textarea
   -------------------------------------------------------------------------- */
.wizard-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 0.625rem;
    font-size: 0.95rem;
    color: var(--gray-900);
    background: var(--gray-50);
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    font-family: inherit;
    line-height: 1.6;
}
.wizard-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
    background: #fff;
}

/* --------------------------------------------------------------------------
   Checkbox (consent)
   -------------------------------------------------------------------------- */
.wizard-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-top: 1.25rem;
}
.wizard-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 0.1rem;
    accent-color: var(--primary);
    cursor: pointer;
}
.wizard-checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}
.wizard-checkbox-label a:hover { text-decoration: underline; }

/* Cloudflare Turnstile widget */
.wizard-turnstile {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Summary (review step)
   -------------------------------------------------------------------------- */
.wizard-summary {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.875rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.wizard-summary__title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 1rem;
}
.wizard-summary__row {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.88rem;
}
.wizard-summary__row:last-child { border-bottom: none; }
.wizard-summary__key {
    min-width: 140px;
    color: var(--gray-500);
    font-weight: 500;
    flex-shrink: 0;
}
.wizard-summary__val {
    color: var(--gray-900);
    font-weight: 500;
    word-break: break-word;
}

/* --------------------------------------------------------------------------
   Footer buttons
   -------------------------------------------------------------------------- */
.wizard-footer {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.75rem;
}
.wizard-footer--center { justify-content: center; }
.wizard-footer__spacer { flex: 1; }

.btn-wizard-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.625rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid var(--gray-200);
    background: transparent;
    color: var(--gray-500);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    font-family: inherit;
}
.btn-wizard-back:hover {
    border-color: var(--gray-400);
    color: var(--gray-700);
}
.btn-wizard-back:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-wizard-next {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.625rem;
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, box-shadow 0.15s;
    font-family: inherit;
    margin-left: auto;
}
.btn-wizard-next:hover {
    opacity: 0.9;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}
.btn-wizard-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Skip link (optional steps)
   -------------------------------------------------------------------------- */
.wizard-skip {
    font-size: 0.82rem;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0;
    font-family: inherit;
    text-decoration: underline;
    align-self: center;
}
.wizard-skip:hover { color: var(--gray-600); }

/* --------------------------------------------------------------------------
   Success / done screen
   -------------------------------------------------------------------------- */
.wizard-done {
    text-align: center;
    padding: 2.5rem 1.5rem;
    animation: step-enter 0.3s ease both;
}
.wizard-done__icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}
.wizard-done__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}
.wizard-done__text {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto 1.5rem;
}

/* --------------------------------------------------------------------------
   Honeypot (hidden, anti-spam)
   -------------------------------------------------------------------------- */
.wz-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* --------------------------------------------------------------------------
   Toast (reuses global .toast from styles.css if available)
   -------------------------------------------------------------------------- */

/* Initial progress fill */
.wizard-progress__fill--initial { width: 10%; }

/* Footer note */
.apply-page__footer-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--gray-400);
}
.apply-page__footer-note a {
    color: var(--primary);
    text-decoration: none;
}
.apply-page__footer-note a:hover { text-decoration: underline; }
