/* TKA Formsie Frontend Premium Stylesheet */

.tka-form {
    /* --- CSS Custom Properties (Theme Variables) --- */
    /* Brand Colors */
    --tka-primary: #6366f1;
    --tka-primary-hover: #4f46e5;
    --tka-bg: rgba(255, 255, 255, 0.85);

    /* Text & Label Colors */
    --tka-text: #0f172a;
    --tka-label: #334155;
    --tka-label-focus: #4f46e5;

    /* Input Fields */
    --tka-input-bg: #f8fafc;
    --tka-input-bg-focus: #ffffff;
    --tka-input-border: #e2e8f0;
    --tka-input-border-focus: #6366f1;
    --tka-input-placeholder: #94a3b8;

    /* Button Styles */
    --tka-btn-bg: linear-gradient(135deg, var(--tka-primary) 0%, var(--tka-primary-hover) 100%);
    --tka-btn-text: #ffffff;
    --tka-btn-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    --tka-btn-shadow-hover: 0 6px 20px rgba(79, 70, 229, 0.35);

    /* Form States (Success, Error, Loading) */
    --tka-success-bg: #ecfdf5;
    --tka-success-text: #065f46;
    --tka-success-border: #a7f3d0;

    --tka-error-bg: #fef2f2;
    --tka-error-text: #991b1b;
    --tka-error-border: #fecaca;
    --tka-error-focus-ring: rgba(239, 68, 68, 0.12);

    --tka-loading-bg: #f1f5f9;
    --tka-loading-text: #475569;
    --tka-loading-border: #cbd5e1;

    /* Layout & Spacing */
    --tka-max-width: 100%;
    --tka-padding: 32px;
    --tka-border-radius: 0px;
    --tka-field-border-radius: 0px;
    --tka-field-padding: 12px 16px;

    /* Typography */
    --tka-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --tka-font-size: 16px;
    --tka-font-size-label: 12px;

    /* Decorative */
    --tka-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.01),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --tka-box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.02);
    --tka-backdrop-filter: blur(16px);
    --tka-focus-ring: 0 0 0 4px rgba(99, 102, 241, 0.12);

    /* --- Core Styles --- */
    font-family: var(--tka-font-family);
    max-width: var(--tka-max-width);
    margin: 32px auto;
    padding: var(--tka-padding);
    background: var(--tka-bg);
    backdrop-filter: var(--tka-backdrop-filter);
    -webkit-backdrop-filter: var(--tka-backdrop-filter);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--tka-border-radius);
    box-shadow: var(--tka-box-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px 16px;
    box-sizing: border-box;
}

/* Form hover effect */
.tka-form:hover {
    box-shadow: var(--tka-box-shadow-hover);
}

.tka-form-title {
    width: 100%;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--tka-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.tka-form-field {
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

/* Column widths system */
.tka-form-field.tka-width-100 {
    width: 100%;
}

.tka-form-field.tka-width-50 {
    width: calc(50% - 8px);
}

.tka-form-field.tka-width-33 {
    width: calc(33.333% - 11px);
}

.tka-form-field.tka-width-25 {
    width: calc(25% - 12px);
}

.tka-form-field.tka-width-66 {
    width: calc(66.666% - 5px);
}

.tka-form-field.tka-width-75 {
    width: calc(75% - 4px);
}

.tka-form-field label,
.tka-radio-group-title {
    font-size: var(--tka-font-size-label);
    font-weight: 600;
    color: var(--tka-label);
    margin-bottom: 8px;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

.tka-radio-group-title {
    margin-bottom: 12px;
}

.tka-required-marker {
    color: var(--tka-error-text);
    margin-left: 2px;
}

/* Inputs, Textareas, Selects & Tel */
.tka-form-field input[type="text"],
.tka-form-field input[type="email"],
.tka-form-field input[type="tel"],
.tka-form-field input[type="date"],
.tka-form-field input[type="datetime-local"],
.tka-form-field select,
.tka-form-field textarea {
    font-family: inherit;
    font-size: var(--tka-font-size);
    padding: var(--tka-field-padding);
    color: var(--tka-text);
    background: var(--tka-input-bg);
    border: 1px solid var(--tka-input-border);
    border-radius: var(--tka-field-border-radius);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    width: 100%;
}

.tka-form-field input[type="text"],
.tka-form-field input[type="email"],
.tka-form-field input[type="tel"],
.tka-form-field input[type="date"],
.tka-form-field input[type="datetime-local"],
.tka-form-field select {
    height: 48px;
    line-height: 1.5;
}

/* Premiumize WebKit Calendar Pickers */
.tka-form-field input[type="date"]::-webkit-calendar-picker-indicator,
.tka-form-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.tka-form-field input[type="date"]::-webkit-calendar-picker-indicator:hover,
.tka-form-field input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.tka-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.tka-form-field input::placeholder,
.tka-form-field textarea::placeholder {
    color: var(--tka-input-placeholder);
}

/* Focused states */
.tka-form-field input[type="text"]:focus,
.tka-form-field input[type="email"]:focus,
.tka-form-field input[type="tel"]:focus,
.tka-form-field input[type="date"]:focus,
.tka-form-field input[type="datetime-local"]:focus,
.tka-form-field select:focus,
.tka-form-field textarea:focus {
    background: var(--tka-input-bg-focus);
    border-color: var(--tka-input-border-focus);
    box-shadow: var(--tka-focus-ring),
        inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.tka-form-field input[type="text"]:focus+label,
.tka-form-field input[type="email"]:focus+label,
.tka-form-field input[type="tel"]:focus+label,
.tka-form-field input[type="date"]:focus+label,
.tka-form-field input[type="datetime-local"]:focus+label,
.tka-form-field textarea:focus+label {
    color: var(--tka-label-focus);
}

/* Custom Dropdown select indicator styling */
.tka-form-field:not(.tka-modern-select) select {
    appearance: auto;
    -webkit-appearance: menulist;
}

.tka-form-field.tka-modern-select select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* Checkbox and Radio Uniform Layout */
.tka-checkbox-group,
.tka-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.tka-checkbox-group-title,
.tka-radio-group-title {
    font-size: var(--tka-font-size-label);
    font-weight: 600;
    color: var(--tka-label);
    margin-bottom: 8px;
    display: block;
}

.tka-checkbox-label,
.tka-radio-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.tka-checkbox-label input[type="checkbox"],
.tka-radio-label input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    border: 1px solid var(--tka-input-border) !important;
    background-color: var(--tka-input-bg) !important;
    display: inline-flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    position: relative;
}

.tka-checkbox-label input[type="checkbox"] {
    border-radius: var(--tka-checkbox-radius, var(--tka-field-border-radius, 4px)) !important;
}

.tka-radio-label input[type="radio"] {
    border-radius: 50% !important;
}

.tka-checkbox-label input[type="checkbox"]:checked,
.tka-radio-label input[type="radio"]:checked {
    background-color: var(--tka-primary) !important;
    border-color: var(--tka-primary) !important;
}

.tka-checkbox-label input[type="checkbox"]:checked::after {
    content: "" !important;
    width: 5px !important;
    height: 9px !important;
    border: solid var(--tka-btn-text, #ffffff) !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
    margin-top: -2px !important;
    display: block !important;
}

.tka-radio-label input[type="radio"]:checked::after {
    content: "" !important;
    width: 8px !important;
    height: 8px !important;
    background-color: var(--tka-btn-text, #ffffff) !important;
    border-radius: 50% !important;
    display: block !important;
}

.tka-checkbox-label input[type="checkbox"]:focus,
.tka-radio-label input[type="radio"]:focus {
    outline: none !important;
    box-shadow: var(--tka-focus-ring) !important;
    border-color: var(--tka-input-border-focus, var(--tka-primary)) !important;
}

.tka-checkbox-label span,
.tka-radio-label span {
    font-size: var(--tka-font-size-label);
    font-weight: 550;
    color: var(--tka-label);
    line-height: 1.4;
}

.tka-checkbox-label a,
.tka-radio-label a {
    color: var(--tka-primary);
    text-decoration: underline;
    transition: color 0.2s;
}

.tka-checkbox-label a:hover,
.tka-radio-label a:hover {
    color: var(--tka-primary-hover);
}

/* Button Group style */
.tka-radio-buttongroup {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.tka-buttongroup-item {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.tka-buttongroup-item input[type="radio"] {
    display: none !important;
}

.tka-buttongroup-item span {
    display: inline-block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tka-label);
    background: var(--tka-input-bg);
    border: 1px solid var(--tka-input-border);
    border-radius: var(--tka-field-border-radius);
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box;
    user-select: none;
}

.tka-buttongroup-item:hover span {
    border-color: var(--tka-primary);
    color: var(--tka-primary);
}

.tka-buttongroup-item input[type="radio"]:checked + span {
    background: var(--tka-primary);
    border-color: var(--tka-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

/* Lightswitch Toggle Switch style */
.tka-radio-lightswitch {
    display: inline-flex;
    position: relative;
    background: var(--tka-input-bg);
    border: 1px solid var(--tka-input-border);
    border-radius: 30px;
    padding: 3px;
    box-sizing: border-box;
    align-items: center;
    overflow: hidden;
}

.tka-lightswitch-item {
    position: relative;
    cursor: pointer;
    z-index: 2;
    padding: 8px 20px;
    user-select: none;
    margin: 0;
}

.tka-lightswitch-item input[type="radio"] {
    display: none !important;
}

.tka-lightswitch-item span {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tka-label);
    transition: color 0.25s ease;
}

.tka-lightswitch-item input[type="radio"]:checked + span {
    color: #ffffff;
}

/* Sliding active pill background */
.tka-radio-lightswitch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    bottom: 3px;
    background: var(--tka-primary);
    border-radius: 27px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Toggle handle positions for 2 options */
.tka-radio-lightswitch:has(.tka-lightswitch-item:nth-child(1) input[type="radio"]:checked)::before {
    left: 3px;
    width: calc(50% - 3px);
}
.tka-radio-lightswitch:has(.tka-lightswitch-item:nth-child(2) input[type="radio"]:checked)::before {
    left: 50%;
    width: calc(50% - 3px);
}

/* Toggle handle positions for 3 options */
.tka-radio-lightswitch:has(.tka-lightswitch-item:nth-child(3))::before {
    width: calc(33.333% - 3px);
}
.tka-radio-lightswitch:has(.tka-lightswitch-item:nth-child(3)):has(.tka-lightswitch-item:nth-child(1) input[type="radio"]:checked)::before {
    left: 3px;
}
.tka-radio-lightswitch:has(.tka-lightswitch-item:nth-child(3)):has(.tka-lightswitch-item:nth-child(2) input[type="radio"]:checked)::before {
    left: 33.333%;
}
.tka-radio-lightswitch:has(.tka-lightswitch-item:nth-child(3)):has(.tka-lightswitch-item:nth-child(3) input[type="radio"]:checked)::before {
    left: 66.666%;
}

/* Toggle handle positions for 4 options */
.tka-radio-lightswitch:has(.tka-lightswitch-item:nth-child(4))::before {
    width: calc(25% - 3px);
}
.tka-radio-lightswitch:has(.tka-lightswitch-item:nth-child(4)):has(.tka-lightswitch-item:nth-child(1) input[type="radio"]:checked)::before {
    left: 3px;
}
.tka-radio-lightswitch:has(.tka-lightswitch-item:nth-child(4)):has(.tka-lightswitch-item:nth-child(2) input[type="radio"]:checked)::before {
    left: 25%;
}
.tka-radio-lightswitch:has(.tka-lightswitch-item:nth-child(4)):has(.tka-lightswitch-item:nth-child(3) input[type="radio"]:checked)::before {
    left: 50%;
}
.tka-radio-lightswitch:has(.tka-lightswitch-item:nth-child(4)):has(.tka-lightswitch-item:nth-child(4) input[type="radio"]:checked)::before {
    left: 75%;
}

/* Validation error highlighting */
.tka-field-has-error input[type="text"],
.tka-field-has-error input[type="email"],
.tka-field-has-error input[type="tel"],
.tka-field-has-error input[type="date"],
.tka-field-has-error input[type="datetime-local"],
.tka-field-has-error select,
.tka-field-has-error textarea {
    border-color: var(--tka-error-border);
    background: var(--tka-error-bg);
}

.tka-field-has-error input[type="text"]:focus,
.tka-field-has-error input[type="email"]:focus,
.tka-field-has-error input[type="tel"]:focus,
.tka-field-has-error input[type="date"]:focus,
.tka-field-has-error input[type="datetime-local"]:focus,
.tka-field-has-error select:focus,
.tka-field-has-error textarea:focus {
    box-shadow: var(--tka-error-focus-ring);
    border-color: var(--tka-error-text);
}

.tka-field-has-error label {
    color: var(--tka-error-text);
}

.tka-field-error-message {
    color: var(--tka-error-text);
    font-size: 12px;
    font-weight: 500;
    margin-top: 0;
    min-height: 0;
    display: none;
}

.tka-field-error-message:not(:empty),
.tka-field-has-error .tka-field-error-message:not(:empty) {
    display: block;
    margin-top: 6px;
    animation: tkaSlideIn 0.2s ease-out;
}

/* Submit Container & Button styling */
.tka-form-submit-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
}

/* 1. At a new row (forces line break, aligned to right / end) */
.tka-form-submit-wrapper.tka-submit-new-row,
.tka-form-submit-wrapper:not([class*="tka-submit-"]) {
    width: 100%;
    margin-top: 8px;
    justify-content: flex-end;
}

/* 2. At the start of the row (left-aligned) */
.tka-form-submit-wrapper.tka-submit-row-start {
    width: 100%;
    margin-top: 8px;
    justify-content: flex-start;
}

/* 3. Last row at the end (shares the row with last field if space allows, aligned right) */
.tka-form-submit-wrapper.tka-submit-last-row-end {
    width: auto;
    flex: 1 1 200px;
    margin-top: 0;
    justify-content: flex-end;
    align-self: center;
}

.tka-form-submit-wrapper .tka-form-field {
    margin: 0;
    width: auto;
}

.tka-form-submit-wrapper .tka-form-field-verification,
.tka-form-submit-wrapper .tka-form-field-recaptcha {
    width: auto;
}

.tka-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tka-btn-bg);
    color: var(--tka-btn-text);
    border: none;
    border-radius: var(--tka-field-border-radius);
    font-size: var(--tka-font-size);
    font-weight: 600;
    padding: 12px 28px;
    cursor: pointer;
    box-shadow: var(--tka-btn-shadow);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
}

.tka-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--tka-btn-shadow-hover);
}

.tka-submit-btn:active {
    transform: translateY(0);
}

/* Response message block style */
.tka-form-response-message {
    border-radius: var(--tka-field-border-radius);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.5;
    margin-bottom: 24px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    width: 100%;
}

.tka-form-response-message.tka-status-loading,
.tka-form-response-message.tka-status-success,
.tka-form-response-message.tka-status-error {
    padding: 12px 16px;
    max-height: 200px;
    opacity: 1;
}

.tka-status-loading {
    background-color: var(--tka-loading-bg);
    color: var(--tka-loading-text);
    border: 1px solid var(--tka-loading-border);
}

.tka-status-success {
    background-color: var(--tka-success-bg);
    color: var(--tka-success-text);
    border: 1px solid var(--tka-success-border);
}

.tka-status-error {
    background-color: var(--tka-error-bg);
    color: var(--tka-error-text);
    border: 1px solid var(--tka-error-border);
}

/* Keyframe animations */
@keyframes tkaSlideIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compound Name and Address Fields layout & responsiveness */
.tka-name-fields {
    display: flex;
    gap: 16px;
    width: 100%;
}

.tka-address-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.tka-row-fields {
    display: flex;
    gap: 16px;
    width: 100%;
}

@media (max-width: 580px) {
    .tka-name-fields {
        flex-direction: column;
        gap: 16px !important;
    }

    .tka-row-fields {
        flex-direction: column;
        gap: 16px !important;
    }

    .tka-form-field.tka-width-50,
    .tka-form-field.tka-width-66,
    .tka-form-field.tka-width-75,
    .tka-form-field.tka-width-33,
    .tka-form-field.tka-width-25 {
        width: 100% !important;
    }

    .tka-form-submit-wrapper.tka-submit-last-row-end {
        width: 100% !important;
        flex: 1 1 100% !important;
        margin-top: 8px;
    }
}

/* File Upload Field styling */
.tka-form-field-file input[type="file"] {
    background: var(--tka-input-bg);
    border: 1px dashed var(--tka-input-border);
    border-radius: var(--tka-field-border-radius);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--tka-text);
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
    width: 100%;
}

.tka-form-field-file input[type="file"]:hover {
    border-color: var(--tka-primary);
    background: var(--tka-input-bg-focus);
}

.tka-form-field-file input[type="file"]:focus {
    border-color: var(--tka-input-border-focus);
    box-shadow: var(--tka-focus-ring);
}

/* Math Verification Field styling */
.tka-verification-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: auto;
    max-width: 100%;
}

.tka-verification-question {
    font-size: calc(var(--tka-font-size) * 1.1);
    font-weight: 500;
    color: var(--tka-text);
    white-space: nowrap;
    user-select: none;
    letter-spacing: 0.05em;
}

.tka-verification-wrapper input.tka-verification-input {
    width: 120px;
    min-width: 80px;
    max-width: 160px;
    text-align: center;
    font-size: var(--tka-font-size);
}

/* Availability Calendar Styling */
.tka-availability-calendar {
    background: var(--tka-input-bg);
    border: 1px solid var(--tka-input-border);
    border-radius: var(--tka-field-border-radius, 8px);
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.tka-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.tka-cal-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--tka-text);
}
.tka-cal-btn {
    background: transparent;
    border: 1px solid var(--tka-input-border);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--tka-label);
    transition: all 0.2s ease;
}
.tka-cal-btn:hover:not(:disabled) {
    background: var(--tka-primary);
    color: #fff;
    border-color: var(--tka-primary);
}
.tka-cal-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.tka-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    color: var(--tka-input-placeholder);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.tka-calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.tka-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    background: #fff;
    color: var(--tka-text);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
.tka-cal-day.tka-day-disabled {
    opacity: 0.35;
    background: transparent;
    color: var(--tka-input-placeholder);
    cursor: not-allowed;
}
.tka-cal-day.tka-day-available:hover:not(.tka-day-disabled) {
    border-color: var(--tka-primary);
    color: var(--tka-primary);
    transform: translateY(-1px);
}
.tka-cal-day.tka-day-selected {
    background: var(--tka-primary) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}
.tka-calendar-selected-badge {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tka-primary);
    text-align: center;
}

/* Time Slot Selector Styling */
.tka-time-slot-picker {
    width: 100%;
    box-sizing: border-box;
}
.tka-slot-tz-notice {
    font-size: 11px;
    color: var(--tka-input-placeholder);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.tka-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tka-slots-placeholder {
    font-size: 13px;
    color: var(--tka-input-placeholder);
    font-style: italic;
    padding: 12px;
    background: var(--tka-input-bg);
    border: 1px dashed var(--tka-input-border);
    border-radius: var(--tka-field-border-radius, 6px);
    width: 100%;
    text-align: center;
}
.tka-slot-btn {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tka-text);
    background: var(--tka-input-bg);
    border: 1px solid var(--tka-input-border);
    border-radius: var(--tka-field-border-radius, 6px);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    flex: 1 1 calc(33.333% - 8px);
    min-width: 90px;
    text-align: center;
}
.tka-slot-btn:hover {
    border-color: var(--tka-primary);
    color: var(--tka-primary);
}
.tka-slot-btn.tka-slot-selected {
    background: var(--tka-primary) !important;
    border-color: var(--tka-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* --- MULTI-PAGE FORM MECHANISM STYLES --- */
.tka-multi-page-header {
    width: 100%;
    margin-bottom: 24px;
}

.tka-step-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.tka-step-progress-fill {
    height: 100%;
    background: var(--tka-primary, #6366f1);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tka-step-pills {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.tka-step-pill {
    flex: 1 1 auto;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    padding: 8px 14px;
    border-radius: var(--tka-field-border-radius, 6px);
    background: #f1f5f9;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tka-step-pill.active {
    color: #ffffff;
    background: var(--tka-primary, #6366f1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tka-step-pill.completed {
    color: var(--tka-primary, #6366f1);
    background: #e0e7ff;
}

.tka-form-page {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 16px;
}

.tka-form-page:not(.active) {
    display: none !important;
}

.tka-page-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 12px;
}

.tka-btn-prev-page {
    /* Unstyled - styled by host theme */
}

.tka-btn-next-page {
    margin-left: auto;
}