/* General Body & Font Styling */
body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: #faf9f8; /* From nutriform body */
    color: #1a1c1c; /* From nutriform body */
}

/* Custom Primary Colors */
:root {
    --bs-primary: #ab3500;
    --bs-primary-rgb: 171, 53, 0;
    --bs-light: #f4f3f2;
    --bs-body-color: #1a1c1c;
    --bs-body-bg: #faf9f8;
}

.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    border-radius: 9999px !important;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease-in-out;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.2);
}
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-success {
    border-radius: 9999px !important;
}


/* New Stepper with Integrated Progress */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}
.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e9e8e7; /* surface-container-high */
    transform: translateY(-50%);
    z-index: 1;
}
.stepper-line {
    position: absolute;
    top: 1.5rem;
    left: 0;
    height: 4px;
    background-color: var(--bs-primary);
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.4s ease-in-out;
    width: 0%; /* Initial width, will be updated by JS */
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 3;
    background-color: transparent;
    padding: 0 0.5rem;
}
.step-counter {
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    background: #e9e8e7; /* surface-container-high */
    color: #594139; /* on-surface-variant */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 4px solid #e9e8e7;
}
.step-name {
    position: absolute;
    top: 4.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #594139; /* on-surface-variant */
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
}
.stepper-item.active .step-counter {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}
.stepper-item.completed .step-counter {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
.stepper-item.active .step-name {
    color: var(--bs-primary);
}

/* Form Styling (re-adding for context, no changes here) */

/* Form Styling */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-card {
    background-color: #ffffff; /* surface-container-lowest */
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(26, 28, 28, 0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

@media(max-width: 576px) {
    .form-card {
        padding: 1.5rem;
    }
}

.form-card .form-control-lg, .form-card .form-select-lg {
    border-radius: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06), inset 0 1px 3px rgba(0,0,0,0.08) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    -webkit-appearance: none; /* Removes default Safari/Chrome styling for select */
    -moz-appearance: none; /* Removes default Firefox styling for select */
    appearance: none; /* Removes default styling for select */
}
/* Add custom arrow for select dropdowns */
.form-card .form-select-lg {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.25rem center !important;
    background-size: 16px 12px !important;
}

.form-card .form-control-lg:focus, .form-card .form-select-lg:focus {
    background-color: #ffffff !important;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06), inset 0 1px 3px rgba(0,0,0,0.08), 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25) !important;
    outline: none !important;
}
.form-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #594139; /* on-surface-variant */
    padding-left: 0.25rem;
    margin-bottom: 0.5rem;
}

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

@media(min-width: 576px){
    .radio-card-group {
        grid-template-columns: 1fr 1fr;
    }
}

.radio-card {
    position: relative;
}
.radio-card .form-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.radio-card .radio-card-content {
    border: 2px solid #e9e8e7;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 600;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.radio-card .radio-card-content .material-symbols-outlined {
    font-size: 2rem;
    display: block;
    margin: 0 auto 0.5rem;
    color: var(--bs-primary);
    transition: all 0.2s ease-in-out;
}

.radio-card .form-check-input:hover + .radio-card-content {
    border-color: #e1bfb5;
}

.radio-card .form-check-input:checked + .radio-card-content {
    border-color: var(--bs-primary);
    background-color: #ffede6; /* primary-fixed lightened */
    color: var(--bs-primary);
}

.radio-card .form-check-input:checked + .radio-card-content .material-symbols-outlined {
    transform: scale(1.1);
}

.form-image-cover {
    height: 100%;
    object-fit: cover;
}
