@import url("/tokens.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--background);
    color: var(--text-primary);
}

.navbar img {
    width: 200px;
    height: auto;
}

#Applicant a {
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--text-muted);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.container {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.pricing-cards {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.subject {
    margin-bottom: 1.25rem;
}

#app {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-align: left;
}

.form-lead {
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 5px 10px color-mix(in srgb, var(--text-primary) 8%, transparent);
    padding: 2rem;
    width: 100%;
}

.step-progress {
    margin-bottom: 1.5rem;
}

.step-progress-track {
    height: 4px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.step-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.2s ease;
}

.step-dots {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0;
}

.step-dots li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step-dots li span {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 700;
}

.step-dots li.is-active,
.step-dots li.is-done {
    color: var(--text-primary);
}

.step-dots li.is-active span,
.step-dots li.is-done span {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
}

.step-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 650;
}

.form-step[hidden] {
    display: none !important;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 550;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.req {
    color: var(--danger);
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85em;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

input,
select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 0.85rem;
    font-size: 1rem;
    background-color: var(--surface);
    color: var(--text-primary);
}

input:focus,
select:focus {
    outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
    border-color: var(--primary);
}

.step-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

button.submit,
.btn-secondary {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

button.submit {
    background-color: var(--primary);
    color: var(--on-primary);
}

button.submit:hover {
    background-color: var(--primary-hover);
}

button.submit:active {
    background-color: var(--primary-active);
}

button.submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--background);
}

.errorMessage {
    color: var(--danger);
    text-align: center;
    margin-bottom: 0.75rem;
    min-height: 1.25rem;
}

.my-swal-icon {
    font-weight: bold;
}

.my-swal-popup {
    border-radius: 24px;
    border: 1px solid var(--border);
}

.startButton,
a.startButton {
    display: inline-block;
    background-color: var(--primary) !important;
    color: var(--on-primary) !important;
    border: 2px solid var(--primary) !important;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-size: 1.125rem;
    border-radius: 0.375rem;
    margin-top: -1.25rem;
    width: 50%;
    text-align: center;
}

.startButton:hover,
a.startButton:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

@media (max-width: 640px) {
    .card {
        padding: 1.25rem;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .step-dots li {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
        font-size: 0.7rem;
    }

    .navbar {
        padding: 12px 16px;
    }

    .navbar img {
        width: 140px;
    }
}
