#somavital-form-container {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

#somavital-multistep-form {
    position: relative;
    min-height: 400px;
}

.sf-step {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%;
}

.sf-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideUpFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.sf-step label {
    display: flex;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #fff;
    align-items: flex-start;
}

.sf-step label .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--sf-step-num-bg, rgba(255,255,255,0.2));
    color: var(--sf-step-num-color, #fff);
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 5px;
}

.sf-step input[type="text"],
.sf-step input[type="email"],
.sf-step textarea,
.sf-step select {
    width: 100% !important;
    max-width: 720px !important;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--sf-input-border-color, rgba(255, 255, 255, 0.3)) !important;
    color: var(--sf-input-text-color, #fff) !important;
    font-size: 20px;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
    font-family: inherit;
    box-sizing: border-box;
}

.sf-step input[type="text"]:focus,
.sf-step input[type="email"]:focus,
.sf-step textarea:focus,
.sf-step select:focus,
.sf-step input[type="text"]:not(:placeholder-shown),
.sf-step input[type="email"]:not(:placeholder-shown),
.sf-step textarea:not(:placeholder-shown) {
    border-bottom-color: var(--sf-input-border-active-color, #fff) !important;
}

.sf-step textarea {
    resize: none;
    min-height: 60px;
    overflow: hidden;
}

.sf-step select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

.sf-step select option {
    background: #222;
    color: #fff;
}

.sf-step input::placeholder,
.sf-step textarea::placeholder {
    color: var(--sf-input-placeholder-color, rgba(255, 255, 255, 0.3)) !important;
}

.sf-buttons {
    display: flex;
    align-items: center;
    margin-top: 40px;
    gap: 12px;
}

.sf-next, .sf-submit {
    background-color: #fff !important;
    color: #000 !important;
    border: none !important;
    padding: 10px 24px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sf-next:hover, .sf-submit:hover {
    background-color: #e6e6e6;
}

.sf-next:active, .sf-submit:active {
    transform: scale(0.98);
}

.sf-prev {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sf-prev:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.sf-subtext {
    display: block;
    color: var(--sf-input-hint-color, rgba(255, 255, 255, 0.5)) !important;
    font-size: 14px;
    margin-top: 5px;
    font-weight: normal;
}

.sf-input-hint {
    font-size: 13px;
    color: var(--sf-input-hint-color, rgba(255, 255, 255, 0.5)) !important;
    margin-bottom: 20px;
    display: block;
}

.sf-hint kbd {
    font-family: inherit;
    font-weight: bold;
    font-size: 12px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 0;
}

.sf-error-msg {
    color: #ffb4b4;
    font-size: 14px;
    background: rgba(255, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step note (subtitle inside label) */
.sf-step-note {
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: var(--sf-input-hint-color, rgba(255,255,255,0.5));
    margin-top: 6px;
    line-height: 1.4;
}

/* Label with note — number stays inline with title, note drops below */
.sf-label-with-note {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sf-label-title {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.sf-label-title .step-num {
    flex-shrink: 0;
}

/* Custom Animated Checkbox */
.sf-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sf-checkbox-item:has(input:checked) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15), inset 0 0 20px rgba(255,255,255,0.03);
}

/* Hide native input completely */
.sf-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Label is the full clickable row */
.sf-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    font-weight: normal !important;
    font-size: 16px !important;
    color: var(--sf-input-text-color, #fff) !important;
    line-height: 1.6;
    position: relative;
    width: 100%;
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

/* Custom checkbox box */
.sf-checkbox-label::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: transparent;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
    margin-top: 2px;
}

.sf-checkbox-item input:checked ~ .sf-checkbox-label::before {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12), 0 0 16px rgba(255,255,255,0.2);
}

/* Animated checkmark */
.sf-checkbox-label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 9px;
    width: 12px;
    height: 6px;
    border-left: 2.5px solid rgba(0, 0, 0, 0.8);
    border-bottom: 2.5px solid rgba(0, 0, 0, 0.8);
    transform: rotate(-45deg) scale(0);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.sf-checkbox-item input:checked ~ .sf-checkbox-label::after {
    transform: rotate(-45deg) scale(1);
}

.sf-checkbox-notice {
    color: var(--sf-input-hint-color, rgba(255,255,255,0.5)) !important;
    font-size: 13px;
    margin-top: 16px;
    margin-bottom: 0;
}

/* Legacy - keep for backwards compat */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--sf-input-text-color, #fff);
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s, border-color 0.2s;
}

.checkbox-wrapper:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 4px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--sf-opt-letter-bg, #fff);
    flex-shrink: 0;
}

.sf-success-message {
    text-align: center;
    font-size: 32px;
    animation: slideUpFadeIn 0.8s ease forwards;
}

.sf-nav-arrows {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100;
}
.sf-nav-arrows button {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    width: 50px !important;
    height: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.sf-nav-arrows button svg {
    width: 24px;
    height: 24px;
}
.sf-nav-arrows button:hover:not(:disabled) {
    background: rgba(255,255,255,0.3) !important;
    transform: translateY(-2px);
}
.sf-nav-arrows button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Progress Bar Shortcode */
.sf-progress-bar {
    width: 100%;
    height: 4px;
    display: flex;
    gap: 8px;
}
.sf-progress-fill {
    height: 100%;
    background: var(--sf-progress-filled, #fff);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}
.sf-progress-empty {
    height: 100%;
    background: var(--sf-progress-bg, rgba(255, 255, 255, 0.2));
    width: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Custom Selects */
.sf-custom-select {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.sf-option {
    display: flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #fff;
    margin: 0 !important;
}

.sf-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sf-option input[type="radio"] {
    display: none;
}

.sf-option.selected {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--sf-opt-border-active, #fff) !important;
}

.sf-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--sf-opt-letter-bg, #fff) !important;
    color: var(--sf-opt-letter-color, #000) !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}
/* === Desktop: numerito off-grid === */
@media (min-width: 768px) {
    .sf-step {
        position: relative;
        padding-left: 40px;
    }

    .sf-step .step-num {
        position: absolute;
        left: 0;
        top: 5px;
        margin: 0;
    }
}
