    /* Transition styles */
    .action-form{
        padding-bottom: 100px;
    }
    .action-form-container {
        transition: opacity 0.5s ease-in-out;
        opacity: 1;
    }
    .action-form-container.hiding {
        opacity: 0;
    }
    .input-preview {
        transition: opacity 0.5s ease-in-out;
        opacity: 0;
    }
    .input-preview.showing {
        opacity: 1;
    }
    .input-preview {
        display: flex;
        align-items: flex-start;
        transition: opacity 0.5s ease-in-out;
        opacity: 0; 
        justify-content: flex-start; 
        gap: 3rem;
        padding: 1.5rem;
    }
    .preloader-message {
        position: relative;
        display: inline-block;
        color: var(--grey-60);
        white-space: nowrap;
        overflow: hidden;
        /* border-right: 2px solid var(--orange); */
        margin: 0;
        animation: typing 5s steps(30, end) infinite,
                   shimmer 5s linear infinite;
        background: linear-gradient(
            90deg,
            var(--grey-80) 0%,
            var(--grey-40) 50%,
            var(--grey-20) 100%
        );
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    @keyframes typing {
        0% { width: 0 }
        50% { width: 100% }
        100% { width: 0 }
    }
    @keyframes shimmer {
        0% { background-position: 200% 0 }
        100% { background-position: -200% 0 }
    }
    .action-form {
        max-width: 60vw;
        margin: 0 auto;
    }

    .form-progress {
        display: flex;
        align-items: center;
        gap: 1rem;
        min-width: 200px;
    }

    .progress-bar {
        flex: 1;
        height: 4px;
        background: var(--grey-20);
        border-radius: 2px;
        overflow: hidden;
    }

    .progress-bar-fill {
        height: 100%;
        background: var(--orange);
        width: 0;
        transition: width 0.3s ease;
    }

    .progress-text {
        font-size: 14px;
        color: var(--grey-60);
        white-space: nowrap;
    }

    .form-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2rem;
        padding: 0 2rem;
    }

    .header-left {
        flex: 1;
        margin-right: 2rem;
    }

    .header-right {
        display: flex;
        align-items: center;
    }

    .form-title {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .form-description {
        color: var(--grey-80);
        font-size: 1.1rem;
    }

    @keyframes field-enter {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes field-exit {
        from { opacity: 1; transform: translateY(0); }
        to { opacity: 0; transform: translateY(-20px); }
    }

    .field-enter {
        animation: field-enter 0.3s ease-out forwards;
    }

    .field-exit {
        animation: field-exit 0.3s ease-in forwards;
    }

    .field-completed {
        opacity: 0.7;
    }

    .field-completed input,
    .field-completed textarea {
        background-color: #ffffff;
        cursor: default;
    }

    .field-edit-btn {
        position: absolute;
        right: 1rem;
        top: 1rem;
        padding: 0.4rem 0.8rem;
        background: #fff;
        border: 1px solid var(--grey-20);
        color: var(--grey-80);
        border-radius: 4px;
        font-size: 14px;
        cursor: pointer;
        opacity: 0;
        transition: all 0.2s ease;
    }

    .field-completed:hover .field-edit-btn {
        opacity: 1;
    }

    .field-edit-btn:hover {
        background: var(--orange);
        color: white;
    }

    select.form-control {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border: 1px solid var(--grey-20);
        border-radius: 8px;
        background-color: white;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1em;
        height: 65px;
    }

    select.form-control:focus {
        outline: none;
        border-color: var(-warning);
        box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
    }

    /* Date and Time field styles */
    .date-time-wrapper {
        display: flex;
        gap: 1rem;
    }

    .date-time-wrapper .date-field,
    .date-time-wrapper .time-field {
        flex: 1;
    }

    input[type="date"].form-control {
        appearance: none;
        padding: 0.75rem 1rem;
        height: 65px;
    }

    input[type="date"].form-control::-webkit-calendar-picker-indicator {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .time-field {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .time-field input.form-control {
        width: 3em;
        text-align: center;
        padding: 0.75rem 0.5rem;
    }

    .time-field .time-separator {
        font-size: 1.5rem;
        font-weight: 500;
        color: var(--grey-30);
        user-select: none;
    }

    .time-field .period-toggle {
        padding: 0.75rem 1rem;
        border: 1px solid var(--grey-20);
        border-radius: 8px;
        background: white;
        cursor: pointer;
        font-weight: 500;
        min-width: 4em;
        text-align: center;
    }

    .time-field .period-toggle:hover {
        background: var(--secondary);
    }

    .time-field .period-toggle.active {
        background: var(--primary);
        color: white;
        border-color: var(--secondary);
    }

    .time-field input.form-control {
        height: 65px;
        font-variant-numeric: tabular-nums;
        letter-spacing: 1px;
    }

    select.form-control option {
        padding: 0.5rem;
    }

    .field-wrapper {
        position: relative;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: top center;
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        border-radius: 8px;
        background: var(--light);
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
    }

    .field-label {
        display: block;
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
    }

    .field-label-large { font-size: 1.5rem; }
    .field-label-medium { font-size: 1.25rem; }
    .field-label-small { font-size: 1rem; }

    .phone-field-wrapper {
        position: relative;
        width: 100%;
    }

    .phone-input-container {
        display: flex;
        align-items: center;
        border: 1px solid var(--grey-20);
        border-radius: 4px;
        padding: 8px 12px;
        background: white;
    }

    .phone-country-code {
        color: var(--grey-70);
        font-weight: 500;
        /* margin-right: 8px;
        padding-right: 8px;
        border-right: 1px solid var(--grey-20); */
        width: 80px !important;
        margin-right: 5px;
        border: none !important;
    }
    .phone-country-code:focus{
        outline: none;
    }

    .phone-country-label {
        position: absolute;
        top: -12px;
        left: 12px;
        font-size: 0.8rem;
        color: var(--grey-50);
        background: white;
        padding: 0 4px;
    }

    .phone-input {
        border: none !important;
        padding: 0 !important;
        flex: 1;
        width: auto !important;
    }

    .phone-input:focus {
        outline: none;
        box-shadow: none;
    }

    .phone-input-container:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px var(--primary-light);
    }

    .loading-spinner {
        width: 20px;
        height: 20px;
        border: 2px solid var(--grey-20);
        border-top: 2px solid var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 10px auto;
    }

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

    .autosuggest-preloader {
        text-align: center;
        padding: 10px;
    }

    .autosuggest-wrapper {
        position: relative;
        width: 100%;
    }

    .autosuggest-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid var(--grey-20);
        border-top: none;
        border-radius: 0 0 4px 4px;
        max-height: 200px;
        overflow-y: auto;
        z-index: 1000;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .autosuggest-item {
        padding: 8px 12px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .autosuggest-item:hover {
        background-color: var(--grey-10);
    }

    .field-hint {
        font-size: 0.9rem;
        color: var(--grey-70);
        margin-top: 0.75rem;
        padding-left: 0.5rem;
        border-left: 3px solid #eee;
    }

    .field-container {
        position: relative;
        margin-top: 1rem;
    }

    /* Password field styles */
    .password-field-container {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        width: 100%;
    }

    .toggle-password {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        color: var(--brand-gray);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    .toggle-password:hover {
        color: var(--brand-dark);
    }

    .error-message {
        color: var(--danger);
        font-size: 12px;
        margin-top: 4px;
        display: none;
    }

    /* Address field styles */
    .address-field-container {
        position: relative;
    }

    .suggestions-container {
        position: absolute;
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
        background: white;
        border: 1px solid #E5E7EB;
        border-top: none;
        border-radius: 0 0 6px 6px;
        z-index: 1000;
        display: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .suggestion-item {
        padding: 12px 16px;
        cursor: pointer;
        transition: background-color 0.2s;
        font-size: 14px;
        color: #374151;
    }

    .suggestion-item:hover {
        background-color: #F3F4F6;
    }

    .input-wrapper {
        position: relative;
        width: 100%;
    }

    .field-input {
        width: 100%;
        padding: 1rem;
        border: 2px solid var(--grey-20);
        border-radius: 8px;
        font-size: 1.1rem;
        transition: all 0.2s ease;
        background: #fff;
        margin-bottom: 15px;
    }

    .field-input:focus{
        outline: none;
    }

    .is-valid .field-input {
        border-color: var(--success-light);
    }

    .is-invalid .field-input {
        border-color: var(--danger);
    }

    .validation-message {
        position: absolute;
        left: 0;
        bottom: -1.5rem;
        font-size: 0.85rem;
        color: var(--danger);
        opacity: 0;
        transform: translateY(-5px);
        transition: all 0.2s ease;
    }

    .is-invalid .validation-message {
        opacity: 1;
        transform: translateY(0);
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        75% { transform: translateX(5px); }
    }

    .shake {
        animation: shake 0.4s ease-in-out;
    }

    @keyframes submit-success {
        0% { transform: scale(1); }
        50% { transform: scale(0.95); }
        100% { transform: scale(1); opacity: 0.5; }
    }

    .submitting {
        animation: submit-success 0.4s ease-in-out forwards;
    }

    .textarea-submit {
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .textarea-submit:hover {
        background: #0056b3;
    }

    .textarea-submit:active {
        transform: scale(0.98);
    }

    .field-textarea {
        min-height: 100px;
        resize: none;
        line-height: 1.5;
    }

    .field-input:focus {
        border-color: var(--warning-light);
        outline: none;
        box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    }

    .field-hint-enter {
        position: absolute;
        right: 1rem;
        top: 40%;
        transform: translateY(-50%);
        color: var(--grey-60);
        font-size: 14px;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.2s;
    }

    .field-completed .field-hint-enter {
        opacity: 0;
    }

    .enter-hint {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--secondary);
        font-size: 0.9rem;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .field-input:focus + .enter-hint {
        opacity: 1;
    }

    .badge-container {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .badge-option {
        padding: 0.75rem 1.5rem;
        border: 2px solid var(--grey-30);
        border-radius: 12px;
        background: #fff;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .badge-option:hover {
        background-color: var(--warning-light);
        color: var(--primary);
        border-color: var(--orange);
    }

    .badge-option.selected {
        background: var(--primary);
        color: white;
        border-color: var(--secondary);
    }

    .form-actions {
        margin-top: 2rem;
        text-align: right;
    }

    .continue-btn {
        padding: 0.75rem 2rem;
        font-size: 1.1rem;
        border-radius: 8px;
        background-color: var(--primary);
        color: var(--light);
        margin-left: 2rem;
    }
    .continue-btn:hover{
        background:var(--secondary);
    }

    .continue-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    /* Form Fields Container */
    .form-fields {
        position: relative;
        max-height: calc(100vh - 300px);
        overflow-y: auto;
        padding: 20px;
        scrollbar-width: thin;
        scrollbar-color: #E5E7EB transparent;
    }

    .form-fields::-webkit-scrollbar {
        width: 6px;
    }

    .form-fields::-webkit-scrollbar-track {
        background: transparent;
    }

    .form-fields::-webkit-scrollbar-thumb {
        background-color: #E5E7EB;
        border-radius: 3px;
    }

    /* Blur effect at top and bottom */
    .form-fields::before,
    .form-fields::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 40px;
        pointer-events: none;
        z-index: 1;
    }

    .form-fields::before {
        top: 0;
        background: linear-gradient(to bottom, white, rgba(255,255,255,0));
    }

    .form-fields::after {
        bottom: 0;
        /* background: linear-gradient(to top, white, rgba(255,255,255,0)); */
    }

    /* Date and Time Field Styles */
    .date-field-wrapper {
        position: relative;
        width: 100%;
    }

    .date-field-wrapper input[type="date"] {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        border: 1px solid var(--grey-20);
        border-radius: 6px;
        background: white;
        color: var(--secondary);
    }

    .time-field {
        width: 100%;
    }

    .time-label {
        font-size: 14px;
        color: var(--grey-30);
        margin-bottom: 8px;
    }

    .time-select {
        width: 100%;
        padding: 12px 16px;
        background: white;
        border: 1px solid var(--grey-20);
        border-radius: 6px;
        font-size: 14px;
        color: var(-orange);
        cursor: pointer;
        appearance: none;
        background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L10 13L14 9" stroke="%236B7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
        background-repeat: no-repeat;
        background-position: right 16px center;
        transition: all 0.2s;
    }

    .time-select:hover {
        border-color: var(--grey-30);
    }

    /* Remove browser's default date picker icon */
    input[type="date"]::-webkit-calendar-picker-indicator {
        opacity: 0;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        cursor: pointer;
    }
