/**
 * Sticky Form Component Styles
 */

/* ==========================================================================
   Color Variables
   ========================================================================== */

:root {
    --color-zest: oklch(0.86 0.18 107.88 / 1);
    --color-dark: #323154;
    --color-default: var(--color-dark);
    --color-green: #a3d265;
    --color-light-blue: #b4c1ff;
    --color-light-yellow: #f9fcc7;
    --color-light-100: #f8f9fa;
    --color-alabaster: #F8F9FA;
    --color-rhino: #323154;
}

/* ==========================================================================
   Icon Visibility States
   ========================================================================== */

.sticky-form__close-icon {
    display: none;
}

.sticky-form__open-icon {
    display: block;
}

/* When form is open - show close icon, hide open icon */
.sticky-form.is-open .sticky-form__close-icon {
    display: block;
}

.sticky-form.is-open .sticky-form__open-icon {
    display: none;
}

/* ==========================================================================
   Form Panel States
   ========================================================================== */

/* Form panel - initially hidden with smooth transitions */
.sticky-form__panel {
    display: none !important;
    opacity: 0;
    top: 45%;
    box-shadow: 0 4px 8px 0 rgba(50, 49, 84, 0.08);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* When form is open - use sibling selector since panel is at same level */
.sticky-form.is-open~.sticky-form__panel {
    display: flex !important;
    opacity: 1;
}

/* Chosen content display */
.sticky-form__content-choosen {
    display: none;
}

.sticky-form__content-choosen.visible {
    display: flex;
}

/* ==========================================================================
   Button Visibility States
   ========================================================================== */

/* Navigation buttons - initially hidden */
.sticky-form__back-button,
.sticky-form__next-button {
    display: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show buttons when they should be visible */
.sticky-form__back-button.visible,
.sticky-form__next-button.visible {
    display: inline-flex;
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Ninja Forms Styling
   ========================================================================== */

/* Main Ninja Forms container */
.sticky-form__ninja-form .nf-form-cont {
    width: 100%;
}

/* Form wrapper */
.sticky-form__ninja-form .nf-form-wrap {
    width: 100%;
}

/* ==========================================================================
   Field Labels Styling
   ========================================================================== */

/* Form fields container */
.sticky-form__ninja-form .nf-form-fields-wrap {
    width: 100%;
}

/* Individual field containers */
.sticky-form__ninja-form .nf-field-container {
    margin-bottom: 1rem;
}

/* Field labels */
.sticky-form__ninja-form .nf-field-label {
    margin-bottom: 0.5rem;
    font-weight: 500 !important;
}

.nf-field-label .nf-label-span, .nf-field-label label {
    font-weight: 500 !important;
}

.sticky-form__ninja-form .nf-field-label label {
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    color: var(--color-rhino);
}

/* Required field indicator */
.sticky-form__ninja-form .nf-field-label .nf-label-required {
    color: #dc2626;
    margin-left: 0.25rem;
}

/* ==========================================================================
   Field Inputs Styling
   ========================================================================== */

/* Field inputs - Text, Email, Textarea */
.sticky-form__ninja-form .nf-field input[type="text"],
.sticky-form__ninja-form .nf-field input[type="email"],
.sticky-form__ninja-form .nf-field input[type="tel"],
.sticky-form__ninja-form .nf-field input[type="url"],
.sticky-form__ninja-form .nf-field input[type="number"],
.sticky-form__ninja-form .nf-field input[type="password"],
.sticky-form__ninja-form .nf-field textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 60px;
    color: var(--color-rhino);
    background-color: var(--color-alabaster);
    font-size: 16px;
    line-height: normal;
    font-weight: 500;
    border: none;
    transition: all 0.2s ease;
}

.sticky-form__ninja-form .nf-field textarea {
    border-radius: 12px !important;
    max-height: 100px;
}

.sticky-form__ninja-form .nf-field input[type="text"]:focus,
.sticky-form__ninja-form .nf-field input[type="email"]:focus,
.sticky-form__ninja-form .nf-field input[type="tel"]:focus,
.sticky-form__ninja-form .nf-field input[type="url"]:focus,
.sticky-form__ninja-form .nf-field input[type="number"]:focus,
.sticky-form__ninja-form .nf-field input[type="password"]:focus,
.sticky-form__ninja-form .nf-field textarea:focus {
    outline: none;
    border-color: var(--color-light-blue);
    box-shadow: 0 0 0 2px var(--color-light-blue);
}

.sticky-form__ninja-form .nf-field input[type="text"]::placeholder,
.sticky-form__ninja-form .nf-field input[type="email"]::placeholder,
.sticky-form__ninja-form .nf-field input[type="tel"]::placeholder,
.sticky-form__ninja-form .nf-field input[type="url"]::placeholder,
.sticky-form__ninja-form .nf-field input[type="number"]::placeholder,
.sticky-form__ninja-form .nf-field input[type="password"]::placeholder,
.sticky-form__ninja-form .nf-field textarea::placeholder {
    color: #9ca3af;
}

/* Textarea specific styling */
.sticky-form__ninja-form .nf-field textarea {
    min-height: 100px;
    resize: vertical;
}

/* ==========================================================================
   Checkbox and Radio Styling
   ========================================================================== */

/* Checkbox and Radio styling */
.sticky-form__ninja-form .nf-field input[type="checkbox"],
.sticky-form__ninja-form .nf-field input[type="radio"] {
    width: 1rem !important;
    height: 1rem !important;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-content: center;
    justify-content: center;
    border: 2px solid var(--color-rhino);
    padding: 0px;
}

.sticky-form__ninja-form .nf-field input[type="checkbox"] {
    border-radius: 4px;
}

.sticky-form__ninja-form .nf-field input[type="radio"] {
    border-radius: 50%;
}

.sticky-form__ninja-form .nf-field input[type="checkbox"]:focus,
.sticky-form__ninja-form .nf-field input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-light-blue);
}

.sticky-form__ninja-form .nf-field input[type="checkbox"]:checked {
    background-color: var(--color-rhino);
    border-color: var(--color-rhino);
    background-image: url("../assets/theme-icons/checkbox-checked.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
}

.sticky-form__ninja-form .nf-field input[type="radio"]:checked {
    background-color: var(--color-light-blue);
    border-color: var(--color-rhino);
}

/* Checkbox and Radio labels */
.sticky-form__ninja-form .nf-field .nf-field-label label {
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    color: var(--color-rhino);
}
.sticky-form__ninja-form .nf-field .nf-field-label label a {
    color: var(--color-light-blue);
    text-decoration: none;
    text-transform: initial;
    transition: all 0.2s ease;
}

.sticky-form__ninja-form .nf-field .nf-field-label label a:hover {
    color: var(--color-rhino);
    text-decoration: none;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Checkbox and Radio field labels */
.sticky-form__ninja-form .checkbox-container .nf-field .checkbox-wrap .nf-field-label {
    margin-bottom: 0;
}


.sticky-form__ninja-form .nf-field .nf-field-label label input[type="checkbox"],
.sticky-form__ninja-form .nf-field .nf-field-label label input[type="radio"] {
    order: -1;
}

/* Checkbox  background */
.sticky-form__ninja-form .nf-field .checkbox-wrap {
    background-color: var(--color-alabaster);
    border-radius: 60px;
    padding: 0.5rem 1rem;
    width: 100%;
    align-items: center;
    margin: 8px 0px;
}

/* Select dropdown styling */
.sticky-form__ninja-form .nf-field select {
    background-color: var(--color-alabaster);
    border-radius: 60px;
    padding: 0.5rem 1rem;
    width: 100%;
    margin: 8px 0px;
    border: none;
    font-size: 16px;
    line-height: normal;
    font-weight: 500;
    color: var(--color-rhino);
    transition: all 0.2s ease;

    appearance: none;
    background-repeat: no-repeat;
    background-position: right 1.3rem center;
    padding-right: 2.5rem;
    background-image: url(../assets/theme-icons/triangle-down.svg);
}

.sticky-form__ninja-form .nf-field select:focus {
    outline: none;
    border-color: var(--color-light-blue);
    box-shadow: 0 0 0 2px var(--color-light-blue);
}

/* ==========================================================================
   Star Rating Styling
   ========================================================================== */

/* Star rating container */
/* .sticky-form__ninja-form .starrating-container {
    margin-bottom: 1.5rem;
} */

/* Star rating label */
.sticky-form__ninja-form .starrating-container .nf-field-label {
    margin-bottom: 0.5rem;
}

.sticky-form__ninja-form .starrating-container .nf-label-span {
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color: var(--color-rhino);
}

/* Individual star styling */
.sticky-form__ninja-form .starrating .star {
    position: relative;
    width: 1.62rem;
    height: 1.62rem;
    cursor: pointer;
    border-radius: 60px;
    transition: all 0.2s ease;
    background-image: url(../assets/theme-icons/star-empty.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Star hover effect */
.sticky-form__ninja-form .starrating .star:hover,
.sticky-form__ninja-form .starrating .star:focus {
    background-image: url(../assets/theme-icons/star-filled.svg);
}

/* Star active/selected state */
.sticky-form__ninja-form .starrating .star[aria-checked="true"] {
    background-image: url(../assets/theme-icons/star-filled.svg);
}

.sticky-form__ninja-form .starrating .stars .tmp_fs {
    background-image: url(../assets/theme-icons/star-filled.svg);
}

.sticky-form__ninja-form .starrating .stars .tmp_es {
    background-image: url(../assets/theme-icons/star-empty.svg);
}

/* ==========================================================================
   Submit Button Styling
   ========================================================================== */

/* Submit button styling */
.sticky-form__ninja-form .nf-field input[type="submit"],
.sticky-form__ninja-form .nf-field button[type="submit"] {
    background-color: var(--color-light-blue);
    border-radius: 60px;
    padding: 12px 24px;
    border: none;
    text-align: center;
    color: var(--color-rhino);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sticky-form__ninja-form .nf-field input[type="submit"]:hover,
.sticky-form__ninja-form .nf-field button[type="submit"]:hover {
    background-color: var(--color-rhino);
    color: white;
    transform: scale(1.02);
}

.sticky-form__ninja-form .nf-field input[type="submit"]:focus,
.sticky-form__ninja-form .nf-field button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-light-blue), 0 0 0 4px white;
}

.sticky-form__ninja-form .nf-field input[type="submit"]:disabled,
.sticky-form__ninja-form .nf-field button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Error States Styling
   ========================================================================== */

/* Error states */
.sticky-form__ninja-form .nf-field.nf-error input,
.sticky-form__ninja-form .nf-field.nf-error textarea,
.sticky-form__ninja-form .nf-field.nf-error select {
    border-color: #dc2626;
}

.sticky-form__ninja-form .nf-field.nf-error input:focus,
.sticky-form__ninja-form .nf-field.nf-error textarea:focus,
.sticky-form__ninja-form .nf-field.nf-error select:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px #fecaca;
}

.sticky-form__ninja-form .nf-field.nf-error .nf-error-msg {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Success states */
.sticky-form__ninja-form .nf-field.nf-success input,
.sticky-form__ninja-form .nf-field.nf-success textarea,
.sticky-form__ninja-form .nf-field.nf-success select {
    border-color: var(--color-green);
}

.sticky-form__ninja-form .nf-field.nf-success input:focus,
.sticky-form__ninja-form .nf-field.nf-success textarea:focus,
.sticky-form__ninja-form .nf-field.nf-success select:focus {
    border-color: var(--color-green);
    box-shadow: 0 0 0 2px #bbf7d0;
}

/* ==========================================================================
   Field Descriptions Styling
   ========================================================================== */

/* Field descriptions */
.sticky-form__ninja-form .nf-field-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Hidden Fields Styling
   ========================================================================== */

/* Hidden fields */
.sticky-form__ninja-form .nf-field.nf-hidden {
    display: none;
}

/* ==========================================================================
   Loading States Styling
   ========================================================================== */

/* Loading states */
.sticky-form__ninja-form .nf-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.sticky-form__ninja-form .nf-loading-spinner::after {
    content: '';
    width: 2rem;
    height: 2rem;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--color-rhino);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Form Messages Styling
   ========================================================================== */

/* Form messages */
.sticky-form__ninja-form .nf-response-msg {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.sticky-form__ninja-form .nf-response-msg.nf-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sticky-form__ninja-form .nf-response-msg.nf-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.sticky-form__ninja-form .nf-response-msg.nf-notice {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ==========================================================================
   Custom Navigation Elements
   ========================================================================== */

/* Navigation header */
.sticky-form__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: var(--color-light-100);
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.sticky-form__nav span {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Selected option display */
.sticky-form__selected-option {
    background-color: var(--color-light-100);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.sticky-form__selected-option .sticky-form__checkbox {
    width: 1rem;
    height: 1rem;
    color: var(--color-rhino);
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    cursor: not-allowed;
    opacity: 0.6;
}

.sticky-form__selected-option label {
    margin-left: 0.5rem;
    display: block;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

/* Mobile optimizations */
@media (max-width: 640px) {
    .sticky-form__panel {
        width: calc(100vw - 2rem);
        height: calc(100vh - 10rem);
        margin: 1rem;
        top: 130px;
    }
}



.nf-field-element hr {
    display: none;
}

.nf-form-layout {
    overflow: auto;
    max-height: 500px;
}