/* Onboarding Layout Settings */
.onboarding-wrapper {
    min-height: calc(100vh - 80px); /* Account for navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0 5rem;
}

.onboarding-nav {
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.form-container {
    background: white;
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05); /* Softer float shadow */
    border: none;
    margin-top: 2rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 600;
    margin-bottom: 1rem;
}

#step-indicator {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-title {
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: var(--color-border);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

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

.step-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.step-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Form Inputs */
.form-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group.half {
    flex: 1;
}

label {
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 1.1rem 1.25rem;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background-color: #fafafa;
    color: var(--color-text-main);
    font-family: var(--font-family);
    font-size: 1.05rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-text-main);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

input::placeholder,
textarea::placeholder {
    color: #a1a1aa;
}

.helper-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    display: block;
}

.mt-4 { margin-top: 2.5rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Custom Checkbox Cards */
.checkbox-card {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: white;
}

.checkbox-card:hover {
    border-color: var(--color-text-muted);
    background-color: #f9fafb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02);
    transform: translateY(-2px);
}

.checkbox-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-ui {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-text-light);
    border-radius: 4px;
    margin-right: 1.25rem;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}

.checkbox-card input:checked ~ .checkbox-ui {
    background-color: var(--color-text-main);
    border-color: var(--color-text-main);
}

.checkbox-card input:checked ~ .checkbox-ui::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-card input:checked ~ .checkbox-text strong {
    color: var(--color-text-main);
}

.checkbox-text {
    display: flex;
    flex-direction: column;
}

.checkbox-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.checkbox-text span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Custom Radio Buttons */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-group.row-style {
    grid-template-columns: 1fr;
}

.radio-btn {
    position: relative;
    display: block;
    cursor: pointer;
}

.radio-btn input {
    position: absolute;
    opacity: 0;
}

.radio-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.15rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: white;
    height: 100%;
}

.radio-label:hover {
    border-color: var(--color-text-muted);
    background-color: #f9fafb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02);
    transform: translateY(-2px);
}

.radio-group.row-style .radio-label {
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.radio-group.row-style .radio-label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-text-light);
    border-radius: 50%;
    margin-right: 1rem;
    transition: var(--transition);
}

.radio-btn input:checked ~ .radio-label {
    border-color: var(--color-text-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    box-shadow: 0 0 0 1px var(--color-text-main);
}

.radio-group.row-style .radio-btn input:checked ~ .radio-label::before {
    border-color: var(--color-text-main);
    background-color: var(--color-text-main);
    box-shadow: inset 0 0 0 4px white;
}

/* Conditional Fields */
.conditional-field {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--color-border);
    animation: fadeIn 0.3s ease;
}

.hidden {
    display: none;
}

/* Simple Checkbox */
.checkbox-simple {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500;
    color: var(--color-text-main);
}

.checkbox-simple input {
    margin-top: 0.3rem;
    margin-right: 1rem;
    width: 20px;
    height: 20px;
}

/* Review Box */
.review-box {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.review-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(228, 228, 231, 0.5);
}

.review-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.review-item h4 {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.review-item p, .review-item ul {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-main);
    list-style-position: inside;
}

.review-item li {
    margin-bottom: 0.25rem;
}

/* Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

#submit-btn {
    margin-left: auto;
}

/* Success State */
.success-icon {
  width: 80px;
  height: 80px;
  background-color: #f0fdf4;
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: scale-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scale-in {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive Form */
@media (max-width: 768px) {
    .form-container {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-md);
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-actions {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    .form-actions .btn {
        min-width: 140px;
    }
    .radio-group {
        grid-template-columns: 1fr;
    }
    .step-header h2 {
        font-size: 1.75rem;
    }
}
