/* Onboarding Wizard — Mobile-First Responsive CSS */

/* =====================
   CSS VARIABLES
   ===================== */
:root {
    --ob-primary: #FF5733;
    --ob-primary-light: #ffe8e2;
    --ob-primary-light: color-mix(in srgb, var(--ob-primary) 18%, white);
    --ob-primary-dark: #cc4629;
    --ob-primary-dark: color-mix(in srgb, var(--ob-primary) 80%, black);
    --ob-text: #333333;
    --ob-text-light: #666666;
    --ob-bg: #FFFFFF;
    --ob-bg-alt: #F8F9FA;
    --ob-border: #E0E0E0;
    --ob-error: #DC3545;
    --ob-success: #28A745;
    --ob-radius: 8px;
    --ob-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --ob-secondary: #1a1a2e;
}

/* =====================
   RESET / BASE
   ===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--ob-text);
    background: var(--ob-bg);
    line-height: 1.6;
    min-height: 100vh;
    transition: color 0.2s, background-color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--ob-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =====================
   LAYOUT
   ===================== */
.ob-app {
    display: none;
    min-height: 100vh;
    flex-direction: column;
}

.ob-app.ob-visible {
    display: flex;
}

.ob-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =====================
   LOADING SCREEN
   ===================== */
#ob-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 16px;
}

.ob-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--ob-border);
    border-top-color: var(--ob-primary);
    border-radius: 50%;
    animation: ob-spin 0.7s linear infinite;
}

#ob-loading .ob-loading-text {
    font-size: 0.95rem;
    color: var(--ob-text-light);
    font-weight: 500;
}

/* =====================
   ERROR SCREEN
   ===================== */
#ob-error {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px 20px;
    gap: 12px;
}

.ob-error-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    line-height: 1;
}

.ob-error-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ob-text);
}

.ob-error-message {
    font-size: 1rem;
    color: var(--ob-text-light);
    max-width: 400px;
    line-height: 1.5;
}

/* =====================
   HEADER
   ===================== */
.ob-header {
    text-align: center;
    padding: 32px 0 20px;
}

.ob-header-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--ob-border);
}

.ob-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ob-text);
    margin-bottom: 8px;
    line-height: 1.25;
}

.ob-header-desc,
.ob-header-description {
    font-size: 0.95rem;
    color: var(--ob-text-light);
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
}

/* =====================
   PROGRESS BAR
   ===================== */
.ob-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 0 24px;
}

.ob-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ob-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.ob-progress-dot.active {
    background: var(--ob-primary);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px var(--ob-primary-light);
}

.ob-progress-dot.completed {
    background: var(--ob-primary);
}

/* =====================
   STEP SYSTEM
   ===================== */
.ob-step {
    display: none;
}

.ob-step.active {
    display: block;
    animation: ob-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ob-step-content {
    padding: 24px 0;
}

.ob-step-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ob-text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.ob-step-subtitle {
    font-size: 0.9rem;
    color: var(--ob-text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.ob-step-subtitle:empty {
    display: none;
}

/* =====================
   NAVIGATION BUTTONS
   ===================== */
.ob-nav-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 16px 0 32px;
}

.ob-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    font-family: inherit;
    -webkit-appearance: none;
}

.ob-btn-primary {
    background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ob-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.ob-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ob-btn-secondary {
    background: transparent;
    color: var(--ob-primary);
    border: 2px solid var(--ob-primary);
}

.ob-btn-secondary:hover {
    background: var(--ob-primary-light);
    transform: translateY(-1px);
    text-decoration: none;
}

.ob-btn-secondary:active {
    transform: translateY(0);
}

.ob-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.ob-btn.ob-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.ob-btn.ob-loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: ob-spin 0.7s linear infinite;
}

.ob-btn-secondary.ob-loading::after {
    border-color: color-mix(in srgb, var(--ob-primary) 30%, transparent);
    border-top-color: var(--ob-primary);
}

/* =====================
   FORM CONTROLS
   ===================== */
.ob-form-group {
    margin-bottom: 20px;
}

.ob-form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ob-form-row .ob-form-group {
    flex: 1;
    min-width: 0;
}

.ob-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ob-text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.ob-form-group:focus-within .ob-label {
    color: var(--ob-primary);
}

.ob-required {
    color: var(--ob-error);
    font-weight: 700;
}

.ob-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--ob-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ob-text);
    background: var(--ob-bg);
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
    -webkit-appearance: none;
}

.ob-input::placeholder {
    color: #bbb;
    transition: opacity 0.2s;
}

.ob-input:focus::placeholder {
    opacity: 0.5;
}

.ob-input:focus {
    outline: none;
    border-color: var(--ob-primary);
    box-shadow: 0 0 0 4px var(--ob-primary-light);
    background: var(--ob-bg);
}

.ob-input.ob-input-error {
    border-color: var(--ob-error);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
    animation: ob-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.ob-input.ob-input-valid {
    border-color: var(--ob-success);
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

.ob-field-error {
    color: var(--ob-error);
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 0;
    min-height: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s, opacity 0.3s, margin-top 0.3s;
}

.ob-field-error.ob-visible {
    max-height: 40px;
    opacity: 1;
    margin-top: 5px;
}

.ob-select {
    width: 100%;
    padding: 13px 40px 13px 16px;
    border: 2px solid var(--ob-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ob-text);
    background: var(--ob-bg);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ob-select:focus {
    outline: none;
    border-color: var(--ob-primary);
    box-shadow: 0 0 0 4px var(--ob-primary-light);
}

.ob-select.ob-input-error {
    border-color: var(--ob-error);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
    animation: ob-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* Date of Birth selects */
.ob-dob-row {
    display: flex;
    gap: 8px;
}

.ob-dob-select-wrap {
    flex: 1;
}

.ob-dob-select-wrap--month {
    flex: 1.5;
}

.ob-dob-select {
    font-size: 0.9rem;
    padding: 12px 34px 12px 12px;
}

/* Field hints */
.ob-field-hint {
    font-size: 0.75rem;
    color: var(--ob-text-light);
    margin-top: 4px;
    line-height: 1.4;
}

/* Disabled input */
.ob-input-disabled {
    background: var(--ob-bg-alt);
    color: var(--ob-text-light);
    cursor: not-allowed;
}

.ob-textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--ob-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ob-text);
    background: var(--ob-bg);
    min-height: 90px;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
}

.ob-textarea:focus {
    outline: none;
    border-color: var(--ob-primary);
    box-shadow: 0 0 0 4px var(--ob-primary-light);
}

.ob-textarea.ob-input-error {
    border-color: var(--ob-error);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
    animation: ob-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* =====================
   PHONE COMPOSITE
   ===================== */
.ob-phone-composite {
    display: flex;
    gap: 0;
}

.ob-prefix-wrapper {
    position: relative;
    flex-shrink: 0;
}

.ob-prefix-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 12px;
    border: 2px solid var(--ob-border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: var(--ob-bg-alt);
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--ob-text);
    height: 100%;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.2s;
    white-space: nowrap;
}

.ob-prefix-toggle:hover {
    background: var(--ob-border);
}

.ob-prefix-toggle:focus {
    outline: none;
    border-color: var(--ob-primary);
    background: var(--ob-bg);
}

.ob-prefix-flag {
    font-size: 1.3rem;
    line-height: 1;
}

.ob-prefix-code {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ob-text);
    min-width: 32px;
}

.ob-prefix-arrow {
    font-size: 0.7rem;
    color: var(--ob-text-light);
    transition: transform 0.2s;
}

.ob-prefix-wrapper.ob-open .ob-prefix-arrow {
    transform: rotate(180deg);
}

.ob-phone-input {
    border-radius: 0 10px 10px 0 !important;
    flex: 1;
    min-width: 0;
}

/* Dropdown */
.ob-prefix-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 280px;
    max-height: 280px;
    background: var(--ob-bg);
    border: 2px solid var(--ob-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 200;
    overflow: hidden;
    animation: ob-dropdown-in 0.2s ease-out;
}

.ob-prefix-wrapper.ob-open .ob-prefix-dropdown {
    display: block;
}

@keyframes ob-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ob-prefix-search-wrap {
    padding: 10px;
    border-bottom: 1px solid var(--ob-border);
}

.ob-prefix-search {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid var(--ob-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.ob-prefix-search:focus {
    border-color: var(--ob-primary);
}

.ob-prefix-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ob-prefix-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.ob-prefix-list li:hover,
.ob-prefix-list li.ob-prefix-active {
    background: var(--ob-primary-light);
}

.ob-prefix-list li .ob-pl-flag {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.ob-prefix-list li .ob-pl-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ob-text);
}

.ob-prefix-list li .ob-pl-code {
    font-weight: 600;
    color: var(--ob-text-light);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* =====================
   CHECKBOX CUSTOM
   ===================== */
.ob-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--ob-text-light);
    cursor: pointer;
    line-height: 1.4;
    transition: color 0.2s;
}

.ob-checkbox-label:hover {
    color: var(--ob-text);
}

.ob-checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ob-border);
    border-radius: 5px;
    margin-top: 1px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: var(--ob-bg);
}

.ob-checkbox-label input[type="checkbox"]:checked {
    background: var(--ob-primary);
    border-color: var(--ob-primary);
}

.ob-checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ob-checkbox-label input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px var(--ob-primary-light);
}

.ob-checkbox-label input[type="checkbox"].ob-input-error {
    border-color: var(--ob-error);
    animation: ob-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* =====================
   CALENDAR
   ===================== */
.ob-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ob-calendar-nav-btn {
    width: 42px;
    height: 42px;
    border: 2px solid var(--ob-border);
    border-radius: 50%;
    background: var(--ob-bg);
    color: var(--ob-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ob-calendar-nav-btn:hover {
    border-color: var(--ob-primary);
    color: var(--ob-primary);
    background: var(--ob-primary-light);
    transform: scale(1.08);
}

.ob-calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.ob-calendar-month-label {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ob-text);
    text-transform: capitalize;
    letter-spacing: 0.01em;
}

.ob-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.ob-calendar-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ob-text-light);
    padding: 6px 0 8px;
}

.ob-calendar-day {
    aspect-ratio: 1;
    min-height: 28px;
    max-width: 38px;
    max-height: 38px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: var(--ob-text);
    border: 1.5px solid transparent;
}

.ob-calendar-day:hover:not(.ob-calendar-day--disabled):not(.ob-calendar-day--empty) {
    background: var(--ob-primary-light);
    transform: scale(1.04);
}

.ob-calendar-day--available {
    background: var(--ob-primary-light);
    font-weight: 600;
    color: var(--ob-primary-dark);
    border-color: color-mix(in srgb, var(--ob-primary) 25%, transparent);
}

.ob-calendar-day--available:hover {
    background: color-mix(in srgb, var(--ob-primary) 30%, white);
    border-color: var(--ob-primary);
}

.ob-calendar-day--selected {
    background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-dark)) !important;
    color: white !important;
    font-weight: 600;
    border-color: transparent !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--ob-primary) 30%, transparent);
    transform: scale(1.03);
}

.ob-calendar-day--disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

.ob-calendar-day--today {
    border-color: var(--ob-primary);
    font-weight: 700;
}

.ob-calendar-day--empty {
    cursor: default;
    pointer-events: none;
}

/* =====================
   TIME SLOTS
   ===================== */
.ob-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.ob-slot-item {
    padding: 14px 16px;
    border: 2px solid var(--ob-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    background: var(--ob-bg);
}

.ob-slot-item:hover {
    border-color: var(--ob-primary);
    background: var(--ob-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ob-slot-item.selected {
    border-color: var(--ob-primary);
    background: var(--ob-primary-light);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ob-primary) 20%, transparent);
}

.ob-slot-item.selected .ob-slot-icon {
    stroke: var(--ob-primary);
}

.ob-slot-time {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ob-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ob-slot-icon {
    flex-shrink: 0;
    stroke: var(--ob-text-light);
    transition: stroke 0.2s;
}

.ob-slot-info {
    font-size: 0.78rem;
    color: var(--ob-text-light);
    margin-top: 4px;
    padding-left: 24px;
}

/* =====================
   COURSE CARDS
   ===================== */
.ob-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.ob-course-card {
    border: 2px solid var(--ob-border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--ob-bg);
}

.ob-course-card:hover {
    border-color: var(--ob-primary);
    box-shadow: var(--ob-shadow);
}

.ob-course-card.selected {
    border-color: var(--ob-primary);
    background: var(--ob-primary-light);
    box-shadow: 0 0 0 2px var(--ob-primary-light);
}

.ob-course-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ob-text);
    margin-bottom: 4px;
}

.ob-course-card-info {
    font-size: 0.82rem;
    color: var(--ob-text-light);
    line-height: 1.4;
}

.ob-course-card-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* =====================
   SURVEY
   ===================== */
.ob-survey-question {
    margin-bottom: 24px;
}

.ob-survey-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ob-text);
    margin-bottom: 10px;
    display: block;
    line-height: 1.4;
}

/* Section headers */
.ob-survey-section-header {
    position: relative;
    padding: 18px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-dark));
    color: white;
    overflow: hidden;
}

.ob-survey-section-header::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.ob-survey-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}

.ob-survey-section-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Radio group */
.ob-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ob-radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--ob-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--ob-bg);
}

.ob-radio-item:hover {
    border-color: var(--ob-primary);
    background: var(--ob-primary-light);
    transform: translateX(4px);
}

.ob-radio-item:has(input:checked) {
    border-color: var(--ob-primary);
    background: var(--ob-primary-light);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ob-primary) 10%, transparent);
}

.ob-radio-item input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--ob-border);
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--ob-bg);
}

.ob-radio-item input[type="radio"]:checked {
    border-color: var(--ob-primary);
    border-width: 3px;
    background: var(--ob-bg);
}

.ob-radio-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 10px;
    height: 10px;
    background: var(--ob-primary);
    border-radius: 50%;
    animation: ob-radio-pop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ob-radio-pop {
    0% { transform: translate(-50%, -50%) scale(0); }
    60% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.ob-radio-item input[type="radio"]:focus {
    box-shadow: 0 0 0 3px var(--ob-primary-light);
}

.ob-radio-item-label {
    font-size: 0.95rem;
    color: var(--ob-text);
    cursor: pointer;
    font-weight: 500;
}

/* Checkbox group (survey) */
.ob-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ob-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--ob-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--ob-bg);
}

.ob-checkbox-item:hover {
    border-color: var(--ob-primary);
    background: var(--ob-primary-light);
    transform: translateX(4px);
}

.ob-checkbox-item:has(input:checked) {
    border-color: var(--ob-primary);
    background: var(--ob-primary-light);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ob-primary) 10%, transparent);
}

.ob-checkbox-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--ob-border);
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--ob-bg);
}

.ob-checkbox-item input[type="checkbox"]:checked {
    background: var(--ob-primary);
    border-color: var(--ob-primary);
    animation: ob-check-pop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ob-check-pop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.ob-checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.ob-checkbox-item input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px var(--ob-primary-light);
}

.ob-checkbox-item-label {
    font-size: 0.95rem;
    color: var(--ob-text);
    cursor: pointer;
    font-weight: 500;
}

/* Star rating */
.ob-star-rating {
    display: flex;
    gap: 6px;
}

.ob-star {
    font-size: 32px;
    cursor: pointer;
    color: var(--ob-border);
    transition: color 0.2s, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

.ob-star:hover {
    transform: scale(1.25);
}

.ob-star.ob-star-active,
.ob-star:hover,
.ob-star-rating:hover .ob-star {
    color: #FFB800;
}

.ob-star-rating:hover .ob-star:hover ~ .ob-star {
    color: var(--ob-border);
}

.ob-star-rating .ob-star:not(:hover):not(.ob-star-active) {
    color: var(--ob-border);
}

/* Scale circles */
.ob-scale-circles {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 8px 0;
}

.ob-scale-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--ob-border);
    color: var(--ob-text);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
}

.ob-scale-circle:hover {
    background: color-mix(in srgb, var(--ob-primary) 40%, var(--ob-border));
    transform: scale(1.1);
}

.ob-scale-circle.ob-active {
    background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-dark));
    color: white;
    transform: scale(1.2);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--ob-primary) 40%, transparent);
}

/* Survey select */
.ob-survey-select {
    width: 100%;
    padding: 13px 40px 13px 16px;
    border: 2px solid var(--ob-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ob-text);
    background: var(--ob-bg);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ob-survey-select:focus {
    outline: none;
    border-color: var(--ob-primary);
    box-shadow: 0 0 0 4px var(--ob-primary-light);
}

/* Image grid (survey) */
.ob-image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ob-image-option {
    border: 2px solid var(--ob-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 0 0 auto;
}

.ob-image-option:hover {
    border-color: var(--ob-primary);
    box-shadow: var(--ob-shadow);
    transform: translateY(-2px);
}

.ob-image-option.selected {
    border-color: var(--ob-primary);
    box-shadow: 0 0 0 3px var(--ob-primary-light);
}

.ob-image-option img {
    display: block;
    width: 100%;
    height: auto;
}

.ob-image-option-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ob-text);
    padding: 8px 10px;
}

/* =====================
   GENDER TOGGLE
   ===================== */
.ob-gender-toggle {
    display: flex;
    gap: 12px;
}

.ob-gender-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    border: 2px solid var(--ob-border);
    border-radius: 10px;
    background: var(--ob-bg);
    color: var(--ob-text-light);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ob-gender-btn:hover {
    border-color: var(--ob-primary);
    background: var(--ob-primary-light);
    color: var(--ob-text);
}

.ob-gender-btn.ob-active {
    border-color: var(--ob-primary);
    background: var(--ob-primary-light);
    color: var(--ob-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ob-primary) 12%, transparent);
}

.ob-gender-btn svg {
    flex-shrink: 0;
}

/* =====================
   PRIVACY CENTERING
   ===================== */
.ob-privacy-group {
    text-align: center;
}

.ob-privacy-group .ob-checkbox-label {
    justify-content: center;
}

/* =====================
   BILLING / AUTOCOMPLETE
   ===================== */
.ob-autocomplete-wrapper {
    position: relative;
}

.ob-autocomplete-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--ob-bg);
    border: 2px solid var(--ob-border);
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 100;
    overscroll-behavior: contain;
}

.ob-autocomplete-list.ob-visible {
    display: block;
    animation: ob-dropdown-in 0.2s ease-out;
}

.ob-autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ob-text);
    transition: background 0.15s;
}

.ob-autocomplete-item:hover,
.ob-autocomplete-item.ob-active {
    background: var(--ob-bg-alt);
}

.ob-autocomplete-item:first-child {
    border-radius: 8px 8px 0 0;
}

.ob-autocomplete-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* =====================
   PAYMENT INFO
   ===================== */
.ob-payment-info {
    border: 2px solid var(--ob-border);
    border-radius: 12px;
    padding: 20px;
    background: var(--ob-bg-alt);
    margin-bottom: 20px;
}

.ob-payment-info-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ob-text-light);
    margin-bottom: 8px;
}

.ob-payment-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ob-primary);
    line-height: 1.2;
}

.ob-payment-detail {
    font-size: 0.88rem;
    color: var(--ob-text-light);
    margin-top: 8px;
    line-height: 1.5;
}

.ob-payment-breakdown {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ob-border);
}

.ob-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--ob-text);
    padding: 4px 0;
}

.ob-payment-row-label {
    color: var(--ob-text-light);
}

.ob-payment-row-value {
    font-weight: 600;
}

.ob-payment-row--total {
    font-weight: 700;
    font-size: 1rem;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--ob-border);
}

/* =====================
   WAIVER INFO
   ===================== */
.ob-waiver-info {
    border: 2px solid var(--ob-border);
    border-radius: 12px;
    padding: 20px;
    background: var(--ob-bg-alt);
    margin-bottom: 20px;
}

.ob-waiver-info-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ob-text-light);
    margin-bottom: 8px;
}

.ob-waiver-text {
    font-size: 0.9rem;
    color: var(--ob-text);
    line-height: 1.6;
}

.ob-waiver-text p {
    margin-bottom: 8px;
}

/* =====================
   RESULT PAGE
   ===================== */
.ob-risultato-page {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 50%, #f0fdf4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Iframe/embed: sfondo piatto, no effetti vistosi */
.ob-risultato-page--simple {
    background: var(--ob-bg);
}
.ob-risultato-page--simple .ob-result-icon-pulse {
    display: none;
}

.ob-result-wrap {
    text-align: center;
    padding: 40px 20px;
    max-width: 480px;
    width: 100%;
    position: relative;
    animation: ob-fadeInUp 0.5s ease-out;
}

@keyframes ob-fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Confetti --- */
.ob-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.ob-confetti-piece {
    position: absolute;
    top: -12px;
    border-radius: 2px;
    opacity: 0;
    animation: ob-confetti-fall linear forwards;
}

@keyframes ob-confetti-fall {
    0%   { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* --- Icon wrap --- */
.ob-result-icon-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 28px;
    z-index: 1;
}

.ob-result-icon-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ob-success) 12%, transparent);
    animation: ob-pulse 1.8s ease-out infinite;
}

@keyframes ob-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ob-result-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ob-result-icon--success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.35);
}

.ob-result-icon--success svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: ob-checkmark 0.6s 0.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.ob-result-icon--error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.35);
}

.ob-result-icon--error svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ob-result-icon--error svg line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: ob-checkmark 0.5s 0.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.ob-result-icon-wrap--error .ob-result-icon-pulse {
    background: color-mix(in srgb, var(--ob-error) 12%, transparent);
}

/* --- Title / Subtitle --- */
.ob-result-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ob-text);
    margin-bottom: 10px;
    line-height: 1.25;
    z-index: 1;
    position: relative;
}

.ob-result-subtitle {
    font-size: 1rem;
    color: var(--ob-text-light);
    margin-bottom: 28px;
    line-height: 1.5;
    z-index: 1;
    position: relative;
}

/* --- Booking card --- */
.ob-result-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    text-align: left;
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
}

.ob-result-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ob-result-card-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #fff;
}

.ob-result-card-body {
    padding: 8px 20px 20px;
}

/* --- Detail rows --- */
.ob-result-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ob-result-row:last-child {
    border-bottom: none;
}

.ob-result-badge + .ob-result-row {
    border-bottom: none;
}

.ob-result-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ob-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ob-result-row-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--ob-primary);
}

.ob-result-row-content {
    flex: 1;
    min-width: 0;
}

.ob-result-row-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ob-text-light);
    margin-bottom: 2px;
}

.ob-result-row-value {
    font-size: 1.05rem;
    color: var(--ob-text);
    line-height: 1.4;
}

.ob-result-row-value strong {
    font-weight: 700;
    color: #111;
}

/* --- Payment badge --- */
.ob-result-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
}

.ob-result-badge svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ob-result-badge--paid {
    background: color-mix(in srgb, var(--ob-success) 10%, white);
    color: #15803d;
    border: 1px solid color-mix(in srgb, var(--ob-success) 25%, white);
}

.ob-result-badge--paid svg {
    stroke: #15803d;
}

/* --- Email notice --- */
.ob-result-email-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 0.85rem;
    color: var(--ob-text-light);
    z-index: 1;
    position: relative;
}

.ob-result-email-notice svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--ob-primary);
}

/* --- Error hint --- */
.ob-result-error-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: color-mix(in srgb, var(--ob-error) 6%, white);
    border: 1px solid color-mix(in srgb, var(--ob-error) 15%, white);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--ob-text-light);
    margin-top: 24px;
    z-index: 1;
    position: relative;
}

.ob-result-error-hint svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--ob-error);
}

/* =====================
   MODALS
   ===================== */
.ob-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ob-modal.ob-modal-open {
    display: flex;
}

.ob-modal-content {
    width: 95vw;
    height: 90vh;
    max-width: 900px;
    background: var(--ob-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: ob-modal-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ob-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ob-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ob-border);
    flex-shrink: 0;
}

.ob-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ob-text);
}

.ob-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--ob-bg-alt);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--ob-text-light);
    transition: all 0.2s;
    flex-shrink: 0;
}

.ob-modal-close:hover {
    background: var(--ob-border);
    color: var(--ob-text);
}

.ob-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.ob-modal-iframe {
    flex: 1;
    width: 100%;
    border: none;
}

/* Fatturazione modal — auto height */
.ob-modal-content--auto {
    height: auto;
    max-height: 90vh;
}

.ob-bill-pa-group {
    text-align: center;
}

.ob-bill-pa-group .ob-checkbox-label {
    justify-content: center;
}

.ob-bill-confirm-wrap {
    padding-top: 16px;
    display: flex;
    justify-content: center;
}

.ob-bill-confirm-wrap .ob-btn {
    width: 100%;
    max-width: 280px;
}

/* =====================
   HERO SECTION (landing mode)
   ===================== */
.ob-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a2e;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.ob-hero--with-image {
    min-height: 70vh;
}

.ob-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.ob-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ob-hero-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid rgba(255,255,255,0.3);
}

.ob-hero-headline {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ob-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* =====================
   BODY CONTENT (landing mode)
   ===================== */
.ob-body-content {
    padding: 32px 0;
}

.ob-body-content #ob-body-html {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ob-text);
}

.ob-body-content #ob-body-html h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--ob-text);
}

.ob-body-content #ob-body-html h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--ob-text);
}

.ob-body-content #ob-body-html p {
    margin-bottom: 16px;
}

.ob-body-content #ob-body-html ul,
.ob-body-content #ob-body-html ol {
    margin: 12px 0;
    padding-left: 24px;
}

.ob-body-content #ob-body-html li {
    margin-bottom: 6px;
}

.ob-body-content #ob-body-html strong {
    font-weight: 600;
}

/* =====================
   INFO BOX (event details)
   ===================== */
.ob-info-box {
    padding: 24px 0;
}

.ob-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.ob-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--ob-bg);
    border-radius: var(--ob-radius);
    box-shadow: var(--ob-shadow);
}

.ob-info-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ob-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ob-info-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--ob-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ob-info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ob-text-light);
    margin-bottom: 2px;
}

.ob-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ob-text);
}

.ob-info-value a {
    color: var(--ob-primary);
    text-decoration: none;
}

.ob-info-value a:hover {
    text-decoration: underline;
}

/* =====================
   CTA SIMPLE (whatsapp/phone/link)
   ===================== */
.ob-cta-simple {
    padding: 32px 0;
    text-align: center;
}

.ob-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    min-width: 240px;
}

.ob-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.ob-cta-btn:active {
    transform: translateY(0);
}

.ob-cta-btn--whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.ob-cta-btn--phone {
    background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-dark));
}

.ob-cta-btn--link {
    background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-dark));
}

.ob-cta-btn svg {
    width: 22px;
    height: 22px;
    fill: white;
    flex-shrink: 0;
}

/* =====================
   FOOTER (restyled for landing)
   ===================== */
.ob-footer-legal {
    font-size: 0.8rem;
    color: #999999;
    margin-bottom: 4px;
}

.ob-footer-privacy a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.8rem;
}

.ob-footer-privacy a:hover {
    color: white;
}

/* =====================
   FOOTER
   ===================== */
.ob-footer {
    background: #1a1a2e;
    color: #cccccc;
    padding: 24px 0 16px;
    text-align: center;
    margin-top: auto;
}

.ob-footer-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

.ob-footer-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.ob-footer-info {
    font-size: 0.85rem;
    color: #bbbbbb;
    margin-bottom: 4px;
}

.ob-footer-info a {
    color: #cccccc;
    text-decoration: none;
}

.ob-footer-info a:hover {
    color: white;
}

.ob-footer-powered {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.65rem;
    letter-spacing: 0.03em;
}

.ob-footer-powered a {
    color: #888888;
    text-decoration: none;
}

.ob-footer-powered a:hover {
    color: #bbbbbb;
}

/* =====================
   TOAST
   ===================== */
.ob-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    z-index: 2000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    animation: ob-toast-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: calc(100vw - 40px);
    text-align: center;
    pointer-events: none;
}

.ob-toast--success {
    background: linear-gradient(135deg, #28A745, #218838);
}

.ob-toast--error {
    background: linear-gradient(135deg, #DC3545, #c82333);
}

.ob-toast--info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.ob-toast.ob-toast-out {
    animation: ob-toast-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes ob-slide-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ob-shake {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-6px);
    }
    40% {
        transform: translateX(6px);
    }
    60% {
        transform: translateX(-4px);
    }
    80% {
        transform: translateX(4px);
    }
}

@keyframes ob-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ob-toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes ob-toast-out {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes ob-checkmark {
    to {
        stroke-dashoffset: 0;
    }
}

/* =====================
   RESPONSIVE (768px+)
   ===================== */
@media (min-width: 768px) {
    .ob-container {
        max-width: 720px;
        padding: 0 32px;
    }

    .ob-header {
        padding: 40px 0 24px;
    }

    .ob-header-logo {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .ob-header-title {
        font-size: 1.75rem;
    }

    .ob-header-desc,
    .ob-header-description {
        font-size: 1rem;
    }

    .ob-step-content {
        padding: 28px 0;
    }

    .ob-form-row {
        flex-direction: row;
        gap: 16px;
    }

    .ob-nav-buttons {
        padding: 20px 0 40px;
    }

    .ob-btn {
        width: auto;
        min-width: 160px;
    }

    .ob-btn-next {
        max-width: 280px;
    }

    .ob-calendar-day {
        min-height: 32px;
        max-width: 42px;
        max-height: 42px;
        font-size: 0.82rem;
    }

    .ob-calendar-nav-btn {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .ob-calendar-month-label {
        font-size: 1.2rem;
    }

    .ob-slots {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .ob-slot-item {
        padding: 16px 20px;
    }

    .ob-course-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .ob-course-card {
        padding: 20px;
    }

    .ob-result-wrap {
        padding: 60px 32px;
    }

    .ob-result-icon-wrap {
        width: 110px;
        height: 110px;
    }

    .ob-result-icon {
        width: 110px;
        height: 110px;
    }

    .ob-result-icon--success svg,
    .ob-result-icon--error svg {
        width: 52px;
        height: 52px;
    }

    .ob-result-title {
        font-size: 1.85rem;
    }

    .ob-result-card-body {
        padding: 12px 28px 28px;
    }

    .ob-result-row-value {
        font-size: 1.1rem;
    }

    .ob-modal-content {
        width: 85vw;
    }

    .ob-payment-info,
    .ob-waiver-info {
        padding: 24px;
    }

    .ob-hero-headline {
        font-size: 2.6rem;
    }

    .ob-hero-subtitle {
        font-size: 1.2rem;
    }

    .ob-hero-logo {
        width: 56px;
        height: 56px;
    }

    .ob-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ob-body-content {
        padding: 40px 0;
    }

    .ob-cta-btn {
        padding: 18px 48px;
        font-size: 1.15rem;
    }

    .ob-footer {
        padding: 28px 0 18px;
    }

    .ob-footer-inner {
        max-width: 720px;
    }
}

/* =====================
   DESKTOP (1024px+)
   ===================== */
@media (min-width: 1024px) {
    .ob-container {
        max-width: 720px;
    }

    .ob-hero-headline {
        font-size: 3.2rem;
    }

    .ob-hero-subtitle {
        font-size: 1.3rem;
    }

    .ob-hero-logo {
        width: 60px;
        height: 60px;
    }

    .ob-modal-content {
        width: 75vw;
        max-width: 900px;
    }
}

/* =====================
   COMPACT SELECT (course filter)
   ===================== */
.ob-select-compact {
    padding: 9px 34px 9px 12px;
    font-size: 0.88rem;
    border-radius: 8px;
}

/* =====================
   BILLING PA INLINE
   ===================== */
.ob-sdi-pa-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ob-sdi-pa-row .ob-form-group {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.ob-pa-inline-label {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ob-text-light);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 4px;
}

.ob-pa-inline-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--ob-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: var(--ob-bg);
    flex-shrink: 0;
}

.ob-pa-inline-label input[type="checkbox"]:checked {
    background: var(--ob-primary);
    border-color: var(--ob-primary);
}

.ob-pa-inline-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ob-pa-tooltip {
    position: relative;
    display: inline-flex;
    cursor: help;
    color: var(--ob-text-light);
    font-size: 0.85rem;
}

.ob-pa-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ob-text);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ob-bill-required-hint {
    font-size: 0.75rem;
    color: var(--ob-text-light);
    text-align: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--ob-border);
}

/* =====================
   LIBERATORIA MODAL
   ===================== */
.ob-modal-content--liberatoria {
    max-width: 700px;
    height: 85vh;
}

.ob-modal-content--liberatoria .ob-modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.ob-modal-content--liberatoria .ob-modal-iframe {
    flex: 1;
    width: 100%;
    border: none;
}

.ob-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--ob-border);
    background: var(--ob-bg-alt);
    flex-shrink: 0;
}

.ob-modal-footer .ob-checkbox-label {
    margin-bottom: 10px;
}

/* =====================
   ELEGANT MODAL (shared: payment, fatturazione, liberatoria)
   ===================== */
.ob-modal-elegant {
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: ob-modal-in-elegant 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ob-modal-in-elegant {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ob-modal-elegant .ob-modal-header {
    background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-dark));
    color: white;
    border-bottom: none;
    padding: 18px 20px;
}

.ob-modal-elegant .ob-modal-title {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
}

.ob-modal-elegant .ob-modal-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.ob-modal-elegant .ob-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
}

/* =====================
   UTILITIES
   ===================== */
.ob-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.ob-hidden {
    display: none !important;
}

.ob-text-center {
    text-align: center;
}

.ob-text-muted {
    color: var(--ob-text-light);
}

.ob-mt-8 {
    margin-top: 8px;
}

.ob-mt-16 {
    margin-top: 16px;
}

.ob-mb-8 {
    margin-bottom: 8px;
}

.ob-mb-16 {
    margin-bottom: 16px;
}

.text-uppercase {
    text-transform: uppercase;
}

/* =====================
   FOOTER VERSION
   ===================== */
.ob-footer-version {
    font-size: 0.6rem;
    color: #666666;
    margin-top: 4px;
}

/* =====================
   MAIN SECTION
   ===================== */
.ob-main {
    flex: 1;
}
