/* ===========================
   OzU Racing Forms - Public Styles v2.0
   Matches the dark glassmorphism design of the OzU Racing theme
   =========================== */

/* Form card container */
.ozu-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 3rem);
    position: relative;
    animation: formEntrance 0.8s cubic-bezier(0.65, 0.05, 0.01, 1) both;
}

/* Form header */
.ozu-form-header {
    margin-bottom: var(--spacing-md, 2rem);
    padding-bottom: var(--spacing-sm, 1rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ozu-form-title {
    font-family: var(--font-heading, -apple-system, sans-serif);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.ozu-form-desc {
    color: var(--color-text-secondary, #a0a0a0);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===========================
   PROGRESS BAR
   =========================== */
.ozu-progress-wrapper {
    margin-bottom: 3rem;
}
.ozu-progress-text {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-text-secondary, #a0a0a0);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}
.ozu-progress-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: visible;
}
.ozu-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gradient-start, #ff6b00), var(--color-gradient-end, #ffcc00));
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.65, 0.05, 0.01, 1);
}

/* ===========================
   PAGE HEADER (multi-page sections)
   =========================== */
.ozu-page-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ozu-page-title {
    font-family: var(--font-heading, -apple-system, sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-gradient-start, #ff6b00), var(--color-gradient-end, #ffcc00));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}
.ozu-page-desc {
    color: var(--color-text-secondary, #a0a0a0);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ===========================
   FORM FIELDS
   =========================== */
.ozu-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* Individual field */
.ozu-field {
    position: relative;
    width: 100%;
    min-width: 0;
}

/* Column width variants */
.ozu-field--width-half {
    width: calc(50% - 0.625rem);
}
.ozu-field--width-third {
    width: calc(33.333% - 0.833rem);
}
.ozu-field--width-two-thirds {
    width: calc(66.666% - 0.417rem);
}

/* Labels */
.ozu-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-text, #ffffff);
}
.ozu-required {
    color: var(--color-accent, #ff6b00);
    margin-left: 2px;
}

/* ===========================
   FLOATING LABELS (contact form style)
   =========================== */
.ozu-float-wrap {
    position: relative;
}
.ozu-field--floating .ozu-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary, #a0a0a0);
    font-size: 1rem;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s ease;
    margin-bottom: 0;
    z-index: 1;
}
/* Float up on focus or when input has a value */
.ozu-field--floating .ozu-input:focus + .ozu-label,
.ozu-field--floating .ozu-input:not(:placeholder-shown) + .ozu-label {
    top: -10px;
    left: 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent, #ff6b00);
    background-color: var(--color-bg, #0a0a0a);
    padding: 0 0.4rem;
    transform: translateY(0);
}
/* Error state: floated label turns red */
.ozu-field--floating.ozu-field--error .ozu-input:focus + .ozu-label,
.ozu-field--floating.ozu-field--error .ozu-input:not(:placeholder-shown) + .ozu-label {
    color: var(--color-error, #ff4444);
}

/* Text inputs, textarea, select */
.ozu-form .ozu-input {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--color-text, #ffffff);
    font-size: 1rem;
    font-family: var(--font-primary, -apple-system, sans-serif);
    transition: all 0.3s ease;
    outline: none;
}
.ozu-form .ozu-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.ozu-form .ozu-input:focus {
    border-color: var(--color-accent, #ff6b00);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}
/* Subtle hover effect */
.ozu-form .ozu-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.18);
}

/* Textarea */
.ozu-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Custom Dropdown (replaces native select) */
.ozu-field:has(.ozu-dropdown--open) {
    z-index: 100;
}
.ozu-dropdown {
    position: relative;
}
.ozu-dropdown .ozu-select {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.ozu-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--color-text, #ffffff);
    font-size: 1rem;
    font-family: var(--font-primary, -apple-system, sans-serif);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}
.ozu-dropdown-trigger:hover {
    border-color: rgba(255, 255, 255, 0.2);
}
.ozu-dropdown-trigger:focus,
.ozu-dropdown.ozu-dropdown--open .ozu-dropdown-trigger {
    border-color: var(--color-accent, #ff6b00);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
}
.ozu-dropdown-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ozu-dropdown-value.ozu-dropdown-placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.ozu-dropdown-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.25s ease;
}
.ozu-dropdown--open .ozu-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.ozu-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(20, 20, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    list-style: none;
    margin: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.ozu-dropdown--open .ozu-dropdown-menu {
    max-height: 260px;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.ozu-dropdown-menu::-webkit-scrollbar {
    width: 5px;
}
.ozu-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}
.ozu-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Dropdown items */
.ozu-dropdown-item {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.15s ease;
    user-select: none;
}
.ozu-dropdown-item:hover,
.ozu-dropdown-item.ozu-dropdown-item--focused {
    background: rgba(255, 107, 0, 0.12);
    color: var(--color-text, #ffffff);
}
.ozu-dropdown-item.ozu-dropdown-item--selected {
    background: rgba(255, 107, 0, 0.18);
    color: var(--color-accent, #ff6b00);
    font-weight: 600;
}

/* Error state */
.ozu-field--error .ozu-dropdown-trigger {
    border-color: var(--color-error, #ff4444);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.1);
}

/* ===========================
   SECTION HEADER
   =========================== */
.ozu-field--section {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ozu-section-title {
    font-family: var(--font-heading, -apple-system, sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-gradient-start, #ff6b00), var(--color-gradient-end, #ffcc00));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ozu-section-desc {
    color: var(--color-text-secondary, #a0a0a0);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ===========================
   DESCRIPTION BLOCK
   =========================== */
.ozu-field--description-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}
.ozu-desc-block-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--color-text, #ffffff);
}
.ozu-desc-block-text {
    color: var(--color-text-secondary, #a0a0a0);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ===========================
   RADIO & CHECKBOX CHOICES
   =========================== */
.ozu-choices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ozu-choice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.ozu-choice:hover {
    border-color: rgba(255, 107, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}
/* Selected choice glow */
.ozu-choice:has(input:checked) {
    border-color: rgba(255, 107, 0, 0.4);
    background: rgba(255, 107, 0, 0.06);
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.06);
}
.ozu-choice input[type="radio"],
.ozu-choice input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Radio indicator */
.ozu-choice-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}
.ozu-choice input:checked ~ .ozu-choice-indicator {
    border-color: var(--color-accent, #ff6b00);
}
.ozu-choice input:checked ~ .ozu-choice-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent, #ff6b00);
}

/* Checkbox indicator */
.ozu-choice-indicator--check {
    border-radius: 6px;
}
.ozu-choice input:checked ~ .ozu-choice-indicator--check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 6px;
    height: 10px;
    border: solid var(--color-accent, #ff6b00);
    border-width: 0 2px 2px 0;
    border-radius: 0;
    background: none;
}

.ozu-choice-label {
    font-size: 0.95rem;
}

.ozu-choice input:checked ~ .ozu-choice-label {
    color: var(--color-text, #ffffff);
}

/* ===========================
   "OTHER" OPTION
   =========================== */
.ozu-choice--other {
    flex-wrap: wrap;
}
.ozu-other-input {
    flex: 1;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    color: var(--color-text, #ffffff);
    font-size: 0.88rem;
    font-family: var(--font-primary, -apple-system, sans-serif);
    outline: none;
    transition: all 0.2s ease;
}
.ozu-other-input:focus {
    border-color: var(--color-accent, #ff6b00);
}
.ozu-other-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===========================
   LINEAR SCALE
   =========================== */
.ozu-scale {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.ozu-scale-label {
    font-size: 0.82rem;
    color: var(--color-text-secondary, #a0a0a0);
    flex-shrink: 0;
}
.ozu-scale-label--min {
    text-align: right;
}
.ozu-scale-options {
    display: flex;
    gap: 0;
    flex: 1;
    justify-content: center;
}
.ozu-scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    user-select: none;
    min-width: 42px;
}
.ozu-scale-option:first-child {
    border-radius: 10px 0 0 10px;
}
.ozu-scale-option:last-child {
    border-radius: 0 10px 10px 0;
}
.ozu-scale-option:not(:last-child) {
    border-right: none;
}
.ozu-scale-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ozu-scale-number {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary, #a0a0a0);
    transition: color 0.2s ease;
}
.ozu-scale-option:hover {
    background: rgba(255, 107, 0, 0.08);
    border-color: rgba(255, 107, 0, 0.2);
}
.ozu-scale-option:hover + .ozu-scale-option {
    border-left-color: rgba(255, 107, 0, 0.2);
}
.ozu-scale-option input:checked ~ .ozu-scale-number {
    color: var(--color-accent, #ff6b00);
}
.ozu-scale-option:has(input:checked) {
    background: rgba(255, 107, 0, 0.15);
    border-color: var(--color-accent, #ff6b00);
}
.ozu-scale-option:has(input:checked) + .ozu-scale-option {
    border-left-color: var(--color-accent, #ff6b00);
}

/* ===========================
   RATING (Stars / Hearts)
   =========================== */
.ozu-rating {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}
.ozu-rating-icon {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.15);
    transition: all 0.15s ease;
    display: inline-flex;
    padding: 0.15rem;
    border-radius: 4px;
}
.ozu-rating-icon:hover,
.ozu-rating-icon.ozu-rating-icon--hover {
    color: var(--color-accent-secondary, #ffcc00);
    transform: scale(1.15);
}
.ozu-rating-icon.ozu-rating-icon--active {
    color: var(--color-accent-secondary, #ffcc00);
}
.ozu-rating-icon:focus-visible {
    outline: 2px solid var(--color-accent, #ff6b00);
    outline-offset: 2px;
}
.ozu-rating svg {
    display: block;
}

/* ===========================
   GRID (Radio / Checkbox)
   =========================== */
.ozu-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.ozu-grid {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}
.ozu-grid thead th {
    padding: 0.75rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary, #a0a0a0);
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ozu-grid thead th:first-child {
    text-align: left;
    min-width: 120px;
}
.ozu-grid tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.ozu-grid tbody tr:last-child {
    border-bottom: none;
}
.ozu-grid tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.ozu-grid-row-label {
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
    color: var(--color-text, #ffffff);
    font-weight: 500;
}
.ozu-grid-cell {
    padding: 0.4rem;
    text-align: center;
}
.ozu-grid-label {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0.3rem;
}
.ozu-grid-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ozu-grid-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}
.ozu-grid-label input[type="checkbox"] ~ .ozu-grid-indicator {
    border-radius: 5px;
}
.ozu-grid-label input:checked ~ .ozu-grid-indicator {
    border-color: var(--color-accent, #ff6b00);
}
.ozu-grid-label input[type="radio"]:checked ~ .ozu-grid-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent, #ff6b00);
}
.ozu-grid-label input[type="checkbox"]:checked ~ .ozu-grid-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 5px;
    height: 9px;
    border: solid var(--color-accent, #ff6b00);
    border-width: 0 2px 2px 0;
}

/* ===========================
   FILE UPLOAD
   =========================== */
.ozu-file-drop {
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.ozu-file-drop:hover,
.ozu-file-dragover {
    border-color: var(--color-accent, #ff6b00);
    background: rgba(255, 107, 0, 0.05);
}
.ozu-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ozu-file-drop-content {
    color: var(--color-text-secondary, #a0a0a0);
}
.ozu-file-drop-content svg {
    margin-bottom: 0.5rem;
    opacity: 0.5;
}
.ozu-file-drop-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}
.ozu-file-browse {
    color: var(--color-accent, #ff6b00);
    text-decoration: underline;
}
.ozu-file-hint {
    font-size: 0.8rem !important;
    opacity: 0.6;
}
.ozu-file-name {
    font-size: 0.9rem;
    color: var(--color-accent, #ff6b00);
    padding: 0.5rem;
    word-break: break-all;
}

/* ===========================
   FIELD DESCRIPTION & ERRORS
   =========================== */
.ozu-field-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary, #a0a0a0);
    margin-top: 0.4rem;
    opacity: 0.8;
}

/* Error states */
.ozu-field--error .ozu-input,
.ozu-field--error .ozu-file-drop,
.ozu-field--error .ozu-grid-wrapper {
    border-color: var(--color-error, #ff4444) !important;
}
.ozu-field--error .ozu-scale-option {
    border-color: rgba(255, 68, 68, 0.4) !important;
}
.ozu-field-error {
    font-size: 0.8rem;
    color: var(--color-error, #ff4444);
    margin-top: 0.3rem;
    min-height: 0;
}
.ozu-form-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--color-error, #ff4444);
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}

/* ===========================
   FORM ACTIONS (Nav + Submit)
   =========================== */
.ozu-form-actions {
    margin-top: var(--spacing-md, 2rem);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Back button */
.ozu-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--color-text-secondary, #a0a0a0);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary, -apple-system, sans-serif);
}
.ozu-nav-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text, #ffffff);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Next button */
.ozu-nav-next {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-gradient-start, #ff6b00), var(--color-gradient-end, #ffcc00));
    border: none;
    border-radius: 12px;
    color: var(--color-bg, #0a0a0a);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary, -apple-system, sans-serif);
    flex: 1;
    justify-content: center;
}
.ozu-nav-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.4);
}

/* Submit button */
.ozu-form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-gradient-start, #ff6b00), var(--color-gradient-end, #ffcc00));
    border: none;
    border-radius: 12px;
    padding: 0.9rem 2rem;
    color: var(--color-bg, #0a0a0a);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-family: var(--font-primary, -apple-system, sans-serif);
}
.ozu-form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.4);
}
.ozu-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.ozu-form-submit--loading {
    pointer-events: none;
}
/* Arrow animation on hover */
.ozu-form-submit svg,
.ozu-nav-next svg {
    transition: transform 0.3s ease;
}
.ozu-form-submit:hover:not(:disabled) svg,
.ozu-nav-next:hover svg {
    transform: translateX(4px);
}
.ozu-nav-back svg {
    transition: transform 0.3s ease;
}
.ozu-nav-back:hover svg {
    transform: translateX(-4px);
}

/* ===========================
   SUCCESS STATE
   =========================== */
.ozu-form-success {
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    animation: fadeInUp 0.6s ease;
}
.ozu-success-icon {
    margin-bottom: 1.5rem;
}
.ozu-success-icon svg {
    opacity: 0.9;
}
.ozu-success-title {
    font-family: var(--font-heading, -apple-system, sans-serif);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.ozu-success-message {
    color: var(--color-text-secondary, #a0a0a0);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}
.ozu-success-link {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: linear-gradient(135deg, var(--color-gradient-start, #ff6b00), var(--color-gradient-end, #ffcc00));
    color: var(--color-bg, #0a0a0a);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.ozu-success-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.4);
}

/* ===========================
   CONDITIONAL VISIBILITY (hidden by default, JS toggles)
   =========================== */
.ozu-field--conditional {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes formEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Staggered field entrance animation */
@keyframes fieldReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.ozu-field-entering {
    animation: fieldReveal 0.5s cubic-bezier(0.65, 0.05, 0.01, 1) both;
    animation-delay: var(--reveal-delay, 0s);
}

/* Page transition */
.ozu-form-page {
    animation: fadeInUp 0.35s ease;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .ozu-field--width-half,
    .ozu-field--width-third,
    .ozu-field--width-two-thirds {
        width: 100%;
    }
    .ozu-form {
        border-radius: 20px;
        padding: 1.25rem;
    }
    .ozu-form-title {
        font-size: 1.3rem;
    }
    .ozu-choices {
        gap: 0.4rem;
    }
    .ozu-choice {
        padding: 0.6rem 0.8rem;
    }
    .ozu-file-drop {
        padding: 1.5rem 1rem;
    }
    .ozu-form-success {
        border-radius: 20px;
        padding: 2rem 1.25rem;
    }
    /* Scale responsive */
    .ozu-scale {
        flex-direction: column;
        align-items: flex-start;
    }
    .ozu-scale-options {
        width: 100%;
    }
    .ozu-scale-option {
        flex: 1;
        padding: 0.4rem 0.3rem;
        min-width: 32px;
    }
    /* Grid responsive */
    .ozu-grid {
        font-size: 0.82rem;
    }
    .ozu-grid thead th {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }
    .ozu-grid-row-label {
        padding: 0.5rem;
    }
    /* Nav buttons stack */
    .ozu-form-actions {
        flex-wrap: wrap;
    }
    .ozu-nav-back,
    .ozu-nav-next {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ozu-scale-option {
        min-width: 28px;
        padding: 0.3rem 0.2rem;
    }
    .ozu-scale-number {
        font-size: 0.85rem;
    }
    .ozu-rating-icon svg {
        width: 24px;
        height: 24px;
    }
}
