/* SnowTour Manager — stylesheet pubblico */

.stm-booking-form {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
}

.stm-step-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.stm-step-nav li {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #eef2f7;
    font-size: 0.85rem;
}

.stm-step-nav li.active {
    background: #1e3a5f;
    color: #fff;
}

.stm-room-availability {
    margin: 0.35rem 0 1rem;
}

.stm-room-availability--soldout {
    color: #b32d2e;
}

.stm-hold-timer {
    padding: 0.75rem 1rem;
    background: #fff3cd;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.stm-privacy-panel {
    padding: 1rem 1.15rem;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    background: #f8fafc;
}

.stm-privacy-panel p {
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.stm-privacy-policy-link {
    font-weight: 600;
}

.stm-privacy-consents {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.stm-privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.45;
    cursor: pointer;
}

.stm-privacy-label input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.stm-guest-fields {
    border: 1px solid #dde3ea;
    border-radius: 8px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    background: #fff;
}

.stm-guest-fields legend {
    font-weight: 600;
    padding: 0 0.35rem;
}

.stm-guest-lead-label {
    font-weight: 400;
    font-size: 0.85em;
    color: #5c6b7a;
}

.stm-duplicate-registration {
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    border: 1px solid #f0c36d;
    background: #fff8e6;
}

.stm-duplicate-registration__title {
    margin: 0 0 0.35rem;
    color: #7a4b00;
}

.stm-duplicate-registration__text {
    margin: 0 0 0.85rem;
    color: #5c4a1f;
}

.stm-duplicate-registration__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.stm-third-party-intro {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--stm-auth-brand, #1e3a5f);
    background: #f4f8fc;
    border-radius: 0 8px 8px 0;
}

.stm-guest-email-note {
    grid-column: 1 / -1;
    margin: -0.25rem 0 0.35rem;
}

.stm-guest-section {
    margin-bottom: 0.75rem;
}

.stm-guest-section-title {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #1e3a5f;
}

.stm-guest-section summary {
    cursor: pointer;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.stm-guest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.85rem;
}

.stm-guest-grid .stm-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.9rem;
}

.stm-guest-grid .stm-field--full {
    grid-column: 1 / -1;
}

.stm-guest-grid .stm-field--narrow {
    max-width: 100%;
}

.stm-guest-grid .stm-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.4rem;
}

.stm-guest-fields input,
.stm-guest-fields select,
.stm-guest-fields textarea {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid #c5cdd6;
    border-radius: 5px;
    font: inherit;
}

.stm-required {
    color: #b32d2e;
    font-weight: 700;
    margin-left: 0.1em;
}

.stm-field--invalid input,
.stm-field--invalid select,
.stm-field--invalid textarea {
    border-color: #b32d2e !important;
    box-shadow: 0 0 0 1px #b32d2e;
}

.stm-privacy-label.stm-field--invalid,
.stm-terms-label.stm-field--invalid,
label.stm-field--invalid:has(> input[type="checkbox"]:not(:checked)) {
    outline: 2px solid #b32d2e;
    outline-offset: 3px;
    border-radius: 6px;
}

.stm-guest-section--invalid > summary,
.stm-guest-section--invalid > .stm-guest-section-title {
    color: #b32d2e;
}

.stm-guest-summary {
    padding: 0.75rem 0.85rem;
    background: #f0f6fc;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.stm-guest-fields--matched .stm-guest-form-body {
    display: none;
}

.stm-guest-edit-btn {
    margin-bottom: 0.75rem;
}

/* --- Area riservata cliente: schermata login/registrazione --- */
.stm-customer-portal-auth {
    --stm-auth-brand: #1e3a5f;
    --stm-auth-brand-hover: #16304f;
    --stm-auth-surface: #f8fafc;
    --stm-auth-border: #dde3ea;
    width: 50%;
    max-width: calc(22rem + 80px);
    min-width: 17.5rem;
    margin: 0 auto 2rem;
    box-sizing: border-box;
}

.stm-customer-portal-auth--login-otp-sent .stm-customer-portal-auth__intro,
.stm-customer-portal-auth--login-otp-sent .stm-booking-account-panel--login .stm-booking-account-panel__lead,
.stm-customer-portal-auth--login-otp-sent .stm-booking-account-tabs,
.stm-customer-portal-auth--login-otp-sent .stm-booking-account-panel--login > .stm-auth-submit--send-otp {
    display: none !important;
}

.stm-customer-portal-auth__card {
    overflow: hidden;
    border: 1px solid var(--stm-auth-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(30, 58, 95, 0.1);
}

.stm-customer-portal-auth__header {
    padding: 1.75rem 1.5rem 1.15rem;
    text-align: center;
    background: linear-gradient(180deg, #eef4fb 0%, #fff 100%);
    border-bottom: 1px solid #e8eef4;
}

.stm-customer-portal-auth__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.65rem;
    border-radius: 50%;
    background: var(--stm-auth-brand);
    color: #fff;
}

.stm-customer-portal-auth__icon svg {
    display: block;
    width: 1.65rem;
    height: 1.65rem;
}

.stm-customer-portal-auth__title {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--stm-auth-brand);
}

.stm-customer-portal-auth__intro,
.stm-customer-portal-auth__notice {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4a5568;
}

.stm-customer-portal-auth__notice {
    margin-bottom: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: #fff8e6;
    border: 1px solid #f0d78c;
    color: #7a5b00;
    font-weight: 600;
}

.stm-customer-portal-auth .stm-booking-account-auth {
    margin: 0;
    padding: 1.25rem 1.35rem 1.5rem;
    border: none;
    border-radius: 0;
    background: transparent;
}

.stm-customer-portal-auth .stm-booking-account-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.stm-customer-portal-auth .stm-booking-account-panel__lead,
.stm-customer-portal-auth .stm-auth-grid,
.stm-customer-portal-auth .stm-auth-status,
.stm-customer-portal-auth .stm-auth-submit {
    width: 100%;
    box-sizing: border-box;
}

.stm-customer-portal-auth .stm-auth-grid label {
    width: 100%;
}

.stm-participants-auth,
.stm-booking-account-auth {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    background: #f8fafc;
}

.stm-booking-account-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 1.25rem;
    padding: 0.25rem;
    border: 1px solid #c5cdd6;
    border-radius: 8px;
    background: #fff;
}

.stm-booking-account-segmented .stm-booking-account-tab {
    padding: 0.6rem 0.85rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3a5f;
    transition: background 0.15s ease, color 0.15s ease;
}

.stm-booking-account-segmented .stm-booking-account-tab.active {
    background: var(--stm-auth-brand, #1e3a5f);
    color: #fff;
}

.stm-booking-account-segmented .stm-booking-account-tab:only-child {
    grid-column: 1 / -1;
    cursor: default;
}

.stm-booking-account-panel[hidden] {
    display: none !important;
}

/* Evita conflitto con la utility WP `.hidden` (classe, non attributo). */
.stm-booking-form [hidden] {
    display: none !important;
}

.stm-booking-account-panel__lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #4a5568;
}

.stm-auth-grid--login {
    grid-template-columns: 1fr;
}

.stm-booking-account-auth--logged-in {
    background: #f0f6fc;
    border-color: #c5d9ed;
}

.stm-booking-account-logged-in__message {
    margin: 0 0 0.35rem;
}

.stm-go-account-step {
    margin-top: 0.5rem;
}

.stm-auth-grid .stm-field--full {
    grid-column: 1 / -1;
}

.stm-auth-grid .stm-auth-otp-block,
.stm-auth-grid .stm-auth-login-otp-block {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
}

.stm-participants-auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.stm-participants-tab {
    padding: 0.4rem 0.85rem;
    border: 1px solid #c5cdd6;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
}

.stm-participants-tab.active {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}

.stm-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.85rem;
    margin-bottom: 0.75rem;
}

.stm-auth-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.stm-auth-grid input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    border: 1px solid #c5cdd6;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stm-auth-grid input:focus {
    border-color: var(--stm-auth-brand, #1e3a5f);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
    outline: none;
}

.stm-auth-grid--register {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stm-auth-submit {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 0.85rem;
    padding: 0.75rem 1.25rem;
    border: none !important;
    border-radius: 8px;
    background: var(--stm-auth-brand, #1e3a5f) !important;
    color: #fff !important;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.2);
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.stm-auth-submit:hover,
.stm-auth-submit:focus {
    background: var(--stm-auth-brand-hover, #16304f) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.25);
}

.stm-auth-submit:active {
    transform: translateY(1px);
}

.stm-auth-submit:focus-visible {
    outline: 2px solid var(--stm-auth-brand, #1e3a5f);
    outline-offset: 2px;
}

.stm-auth-status {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.stm-auth-status--error,
.stm-auth-status.stm-error {
    color: #b32d2e;
    font-weight: 600;
}

.stm-auth-status--register,
.stm-auth-status--login {
    margin: 0.75rem 0 0.25rem;
}

.stm-password-input-wrap {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}

.stm-password-input-wrap input {
    flex: 1 1 auto;
    min-width: 0;
}

.stm-password-toggle {
    flex: 0 0 auto;
    border: 1px solid #c5cdd6;
    border-radius: 5px;
    background: #f8fafc;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.2;
}

.stm-password-toggle:hover {
    background: #eef2f7;
}

.stm-auth-otp-block {
    margin-top: 1rem;
    padding: 1rem 1.1rem 0.9rem;
    border: 1px solid #c5d9ed;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    width: 100%;
    box-sizing: border-box;
}

.stm-auth-otp-block--sent {
    border-color: #a8c4e0;
    box-shadow: inset 0 0 0 1px rgba(30, 58, 95, 0.05);
}

.stm-auth-otp-block__badge {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: #e8f2fb;
    color: var(--stm-auth-brand, #1e3a5f);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stm-auth-otp-block__badge[hidden] {
    display: none;
}

.stm-auth-otp-intro {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #4a5568;
}

.stm-auth-otp-send-wrap {
    margin: 0 0 0.85rem;
}

.stm-auth-otp-send-wrap .stm-auth-send-otp,
.stm-auth-send-otp.stm-auth-send-otp--full {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.stm-auth-otp-field {
    margin-top: 0.15rem;
    width: 100%;
}

.stm-auth-otp-field__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--stm-auth-brand, #1e3a5f);
}

.stm-customer-portal-auth .stm-auth-otp-field__label {
    text-align: left;
}

.stm-auth-otp-digit-ui {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    cursor: text;
}

.stm-auth-otp-digit-ui:not(.stm-auth-otp-digit-ui--enabled) {
    cursor: not-allowed;
    opacity: 0.72;
}

.stm-auth-otp-digits {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
}

.stm-auth-otp-digit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.1rem;
    height: clamp(2.75rem, 10vw, 3.5rem);
    border: 2px solid #c5cdd6;
    border-radius: 8px;
    background: #fff;
    font-size: clamp(1.1rem, 3.5vw, 1.35rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--stm-auth-brand, #1e3a5f);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.stm-auth-otp-digit--active {
    border-color: var(--stm-auth-brand, #1e3a5f);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.stm-auth-otp-digit--filled {
    border-color: var(--stm-auth-brand, #1e3a5f);
    background: #f0f6fc;
}

.stm-auth-otp-digit-ui--verified .stm-auth-otp-digit {
    border-color: #2e7d32;
    background: #f1f8f2;
    color: #1b5e20;
}

.stm-auth-otp-code-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    font-size: 16px;
    opacity: 0;
    cursor: inherit;
}

.stm-auth-otp-code-input:disabled {
    cursor: not-allowed;
}

.stm-auth-otp-feedback {
    margin: 0.55rem 0 0;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    font-size: 0.86rem;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

.stm-auth-otp-feedback[hidden] {
    display: none;
}

.stm-auth-otp-feedback--success {
    background: #edf7ed;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.stm-auth-otp-feedback--error {
    background: #fdecea;
    color: #b32d2e;
    border: 1px solid #f5c6cb;
}

.stm-auth-otp-feedback--info {
    background: #e8f2fb;
    color: var(--stm-auth-brand, #1e3a5f);
    border: 1px solid #c5d9ed;
}

.stm-auth-otp-footnote {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #718096;
    text-align: center;
}

.stm-auth-send-otp {
    margin-bottom: 0;
    padding: 0.55rem 1rem;
    border: 1px solid var(--stm-auth-brand, #1e3a5f) !important;
    border-radius: 8px;
    background: #fff !important;
    color: var(--stm-auth-brand, #1e3a5f) !important;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.stm-auth-send-otp:hover,
.stm-auth-send-otp:focus {
    background: var(--stm-auth-brand, #1e3a5f) !important;
    color: #fff !important;
}

.stm-auth-otp-resend,
.stm-auth-login-otp-resend {
    display: block;
    width: 100%;
    margin: 0.55rem 0 0;
    padding: 0.35rem 0;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--stm-auth-brand, #1e3a5f) !important;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.stm-auth-otp-resend:hover,
.stm-auth-login-otp-resend:hover,
.stm-auth-otp-resend:focus,
.stm-auth-login-otp-resend:focus {
    color: var(--stm-auth-brand-hover, #16304f) !important;
    background: none !important;
}

.stm-profile-email-otp {
    margin-top: 0.25rem;
}

.stm-profile-fields .stm-profile-email-otp {
    width: 100%;
}

/* ——— Form anagrafica area cliente ——— */
.stm-section-profile .stm-profile-form {
    margin-top: 0.25rem;
}

.stm-profile-field-group {
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.stm-profile-field-group legend {
    padding: 0 0.4rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--stm-auth-brand, #1e3a5f);
    letter-spacing: 0.01em;
}

.stm-profile-field-grid {
    display: grid;
    gap: 0.95rem 1.1rem;
    margin-top: 0.65rem;
}

.stm-profile-fields--cols-1 .stm-profile-field-grid {
    grid-template-columns: minmax(0, 1fr);
}

.stm-profile-fields--cols-2 .stm-profile-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stm-profile-fields--cols-3 .stm-profile-field-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stm-profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.stm-profile-field--width-full {
    grid-column: 1 / -1;
}

.stm-profile-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    padding-top: 0.35rem;
}

.stm-profile-field--checkbox .stm-profile-field__label {
    margin: 0;
    font-weight: 500;
}

.stm-profile-field__label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.3;
}

.stm-profile-field__control {
    width: 100%;
    box-sizing: border-box;
    padding: 0.62rem 0.82rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    line-height: 1.35;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stm-profile-field__control:focus {
    outline: none;
    border-color: var(--stm-auth-brand, #1e3a5f);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.stm-profile-field textarea.stm-profile-field__control {
    min-height: 5.5rem;
    resize: vertical;
}

.stm-profile-field select.stm-profile-field__control {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2rem;
}

.stm-profile-field input[type='checkbox'].stm-profile-field__control {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: var(--stm-auth-brand, #1e3a5f);
}

.stm-profile-field__control--invalid {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.25);
}

.stm-profile-field--document-upload {
    grid-column: 1 / -1;
}

.stm-doc-upload {
    margin-top: 0.35rem;
}

.stm-doc-upload__dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-height: 9.5rem;
    padding: 1rem 1.15rem;
    border: 1.5px dashed rgba(30, 58, 95, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.stm-doc-upload__dropzone:hover,
.stm-doc-upload__dropzone:focus-visible {
    border-color: var(--stm-auth-brand, #1e3a5f);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
    outline: none;
}

.stm-doc-upload__dropzone--dragover {
    border-color: var(--stm-auth-brand, #1e3a5f);
    background: #eef4fb;
}

.stm-doc-upload__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    color: #4a5568;
}

.stm-doc-upload__icon {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(30, 58, 95, 0.1);
    position: relative;
}

.stm-doc-upload__icon::before {
    content: '';
    position: absolute;
    inset: 0.72rem 0.95rem 0.72rem 0.72rem;
    border: 2px solid var(--stm-auth-brand, #1e3a5f);
    border-radius: 3px;
    box-shadow: inset 0 -0.45rem 0 rgba(30, 58, 95, 0.12);
}

.stm-doc-upload__title {
    font-weight: 600;
    color: #1f2937;
}

.stm-doc-upload__hint {
    font-size: 0.875rem;
    color: #64748b;
}

.stm-doc-upload__preview {
    display: grid;
    grid-template-columns: minmax(5.5rem, 7.5rem) 1fr;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.stm-doc-upload__preview-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.stm-doc-upload__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stm-doc-upload__pdf-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #fee2e2 0%, #fecaca 100%);
}

.stm-doc-upload__pdf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    background: #b91c1c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.stm-doc-upload__preview-body {
    min-width: 0;
}

.stm-doc-upload__filename {
    margin: 0;
    font-weight: 600;
    color: #111827;
    word-break: break-word;
}

.stm-doc-upload__meta-type {
    margin: 0.2rem 0 0.65rem;
    font-size: 0.8125rem;
    color: #64748b;
    letter-spacing: 0.03em;
}

.stm-doc-upload__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    align-items: center;
}

.stm-doc-upload__open,
.stm-doc-upload__replace,
.stm-doc-upload__remove {
    font-size: 0.875rem;
    line-height: 1.2;
}

.stm-doc-upload__open {
    color: var(--stm-auth-brand, #1e3a5f);
    font-weight: 600;
    text-decoration: none;
}

.stm-doc-upload__open:hover {
    text-decoration: underline;
}

.stm-doc-upload__replace,
.stm-doc-upload__remove {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #475569;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.stm-doc-upload__remove {
    color: #b91c1c;
}

.stm-doc-upload__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 5rem;
    color: #475569;
    font-size: 0.9375rem;
}

.stm-doc-upload__spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(30, 58, 95, 0.18);
    border-top-color: var(--stm-auth-brand, #1e3a5f);
    border-radius: 50%;
    animation: stm-doc-upload-spin 0.8s linear infinite;
}

@keyframes stm-doc-upload-spin {
    to {
        transform: rotate(360deg);
    }
}

.stm-doc-upload__status {
    margin: 0.55rem 0 0;
    font-size: 0.875rem;
    color: #555;
}

.stm-doc-upload--error .stm-doc-upload__dropzone {
    border-color: #c0392b;
    background: #fff5f5;
}

.stm-doc-upload--loading .stm-doc-upload__dropzone {
    cursor: wait;
}

.stm-dashboard-header__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stm-dashboard-avatar {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(145deg, #e8eef5 0%, #dbeafe 100%);
    border: 2px solid rgba(30, 58, 95, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stm-dashboard-avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stm-dashboard-avatar__initials {
    font-weight: 700;
    font-size: 1rem;
    color: var(--stm-auth-brand, #1e3a5f);
    letter-spacing: 0.04em;
}

.stm-profile-field--photo-upload {
    grid-column: 1 / -1;
}

.stm-profile-photo {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-top: 0.35rem;
}

.stm-profile-photo__dropzone {
    position: relative;
    width: 8.5rem;
    height: 8.5rem;
    border-radius: 999px;
    border: 2px dashed rgba(30, 58, 95, 0.35);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stm-profile-photo__dropzone:hover,
.stm-profile-photo__dropzone:focus-visible {
    border-color: var(--stm-auth-brand, #1e3a5f);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
    outline: none;
}

.stm-profile-photo__dropzone--dragover {
    border-color: var(--stm-auth-brand, #1e3a5f);
    background: #eef4fb;
}

.stm-profile-photo__empty,
.stm-profile-photo__preview,
.stm-profile-photo__loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.65rem;
}

.stm-profile-photo__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}

.stm-profile-photo__placeholder-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(30, 58, 95, 0.12);
    position: relative;
    margin-bottom: 0.35rem;
}

.stm-profile-photo__placeholder-icon::before,
.stm-profile-photo__placeholder-icon::after {
    content: '';
    position: absolute;
    background: var(--stm-auth-brand, #1e3a5f);
    border-radius: 999px;
}

.stm-profile-photo__placeholder-icon::before {
    width: 0.85rem;
    height: 0.85rem;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
}

.stm-profile-photo__placeholder-icon::after {
    width: 1.35rem;
    height: 0.55rem;
    bottom: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
}

.stm-profile-photo__placeholder-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
}

.stm-profile-photo__placeholder-hint {
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.stm-profile-photo__controls {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: flex-start;
}

.stm-profile-photo__replace,
.stm-profile-photo__remove {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: var(--stm-auth-brand, #1e3a5f);
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.stm-profile-photo__remove {
    color: #b91c1c;
}

.stm-profile-photo__visibility {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.45;
    max-width: 22rem;
}

.stm-profile-photo__visibility input {
    margin-top: 0.2rem;
    accent-color: var(--stm-auth-brand, #1e3a5f);
}

.stm-profile-photo__status {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.875rem;
    color: #555;
}

.stm-profile-photo--loading .stm-profile-photo__dropzone {
    cursor: wait;
}

.stm-participant-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stm-participant-avatar-wrap {
    flex-shrink: 0;
}

.stm-participant-avatar-btn {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 999px;
    cursor: zoom-in;
    line-height: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stm-participant-avatar-btn:hover,
.stm-participant-avatar-btn:focus-visible {
    transform: scale(1.03);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.18);
}

.stm-participant-avatar-btn:disabled {
    cursor: default;
    transform: none;
    box-shadow: none;
}

.stm-affinity-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.stm-participant-avatar {
    width: 5.75rem;
    height: 5.75rem;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8eef5;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dbe3ec;
}

.stm-participant-avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--stm-auth-brand, #1e3a5f);
}

.stm-participant-name {
    min-width: 0;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
}

.stm-participant-content {
    min-width: 0;
    flex: 1;
}

.stm-participant-bio {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #475569;
    white-space: pre-wrap;
}

.stm-participant-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.65rem 0 0;
}

.stm-participant-social a {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a5f;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.stm-participant-social a:hover,
.stm-participant-social a:focus-visible {
    background: #dbeafe;
    color: #0f172a;
}

.stm-participant-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.stm-participant-photo-modal[hidden] {
    display: none;
}

body.stm-participant-photo-modal-open {
    overflow: hidden;
}

.stm-participant-photo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(2px);
}

.stm-participant-photo-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 520px);
    width: 100%;
    padding: 1rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
    text-align: center;
}

.stm-participant-photo-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.stm-participant-photo-modal__close:hover,
.stm-participant-photo-modal__close:focus-visible {
    background: #e2e8f0;
    outline: none;
}

.stm-participant-photo-modal__img {
    display: block;
    width: 100%;
    max-height: min(70vh, 520px);
    margin: 0 auto;
    border-radius: 12px;
    object-fit: contain;
    background: #f8fafc;
}

.stm-participant-photo-modal__caption {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.stm-participant-photo-modal__caption[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .stm-profile-photo {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 640px) {
    .stm-doc-upload__preview {
        grid-template-columns: 1fr;
    }

    .stm-doc-upload__preview-media {
        max-width: 12rem;
    }
}

.stm-profile-field__scan-status {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: #555;
}

.stm-profile-field--file .stm-profile-field__control[type='file'] {
    padding: 0.35rem 0;
    border: none;
    background: transparent;
}

.stm-profile-form__actions {
    margin-top: 1.15rem;
    padding-top: 0.25rem;
}

.stm-profile-form__actions .stm-profile-save,
.stm-profile-form .button-primary.stm-profile-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    padding: 0.65rem 1.35rem !important;
    border: none !important;
    border-radius: 8px !important;
    background: var(--stm-auth-brand, #1e3a5f) !important;
    color: #fff !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.stm-profile-form__actions .stm-profile-save:hover,
.stm-profile-form__actions .stm-profile-save:focus {
    background: var(--stm-auth-brand-hover, #16304f) !important;
    color: #fff !important;
}

.stm-profile-message {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}

.stm-profile-message.stm-success {
    color: #047857;
}

.stm-profile-message.stm-error {
    color: #b91c1c;
}

@media (max-width: 782px) {
    .stm-profile-fields--cols-2 .stm-profile-field-grid,
    .stm-profile-fields--cols-3 .stm-profile-field-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stm-profile-field--width-half,
    .stm-profile-field--width-third {
        grid-column: 1 / -1;
    }
}

.stm-field--guest-count {
    display: block;
    margin-bottom: 1rem;
}

.stm-field--guest-count input {
    max-width: 6rem;
}

.stm-accommodation-preferences {
    margin: 1rem 0;
}

.stm-accommodation-preferences fieldset {
    border: 1px solid #dde3ea;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin: 0 0 0.75rem;
    background: #f8fafc;
}

.stm-accommodation-preferences legend {
    font-weight: 600;
    padding: 0 0.35rem;
}

.stm-accommodation-option {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e8edf2;
    cursor: pointer;
}

.stm-accommodation-option:last-of-type {
    border-bottom: none;
}

.stm-accommodation-option input[type="radio"] {
    margin-top: 0.2rem;
}

.stm-accommodation-option__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stm-accommodation-option__body .description {
    margin: 0;
    color: #4a5568;
}

.stm-participants-logged-in__message {
    margin: 0;
}

@media (max-width: 640px) {
    .stm-customer-portal-auth {
        width: 100%;
        max-width: calc(24rem + 80px);
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .stm-customer-portal-auth__header {
        padding: 1.35rem 1.15rem 1rem;
    }

    .stm-customer-portal-auth .stm-booking-account-auth {
        padding: 1rem 1.1rem 1.25rem;
    }

    .stm-auth-otp-digits {
        gap: 0.3rem;
    }

    .stm-auth-otp-digit {
        font-size: 1.15rem;
        border-radius: 6px;
    }

    .stm-guest-grid,
    .stm-auth-grid,
    .stm-auth-grid--register {
        grid-template-columns: 1fr;
    }

    .stm-guest-grid .stm-field--checkbox {
        padding-top: 0;
    }
}

.stm-guest-fields label {
    display: block;
    margin-bottom: 0.75rem;
}

.stm-guest-fields .stm-guest-grid label {
    margin-bottom: 0;
}

.stm-booking-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.stm-booking-nav-final {
    justify-content: flex-start;
}

.stm-booking-nav .stm-next-step[hidden] {
    display: none !important;
}

.stm-booking-final-confirm {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stm-booking-final-confirm .stm-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    line-height: 1.5;
    margin: 0;
}

.stm-booking-final-confirm .stm-terms-label input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.stm-booking-final-confirm .stm-confirm-booking {
    align-self: flex-start;
}

.stm-booking-nav button,
.stm-confirm-booking {
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #1e3a5f;
    color: #fff;
}

.stm-booking-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.stm-success {
    padding: 1.5rem;
    background: #d4edda;
    border-radius: 8px;
    color: #155724;
}

.stm-booking-success {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    color: inherit;
}

.stm-booking-success h3,
.stm-booking-success h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: inherit;
    font-size: inherit;
    font-weight: 700;
}

.stm-booking-success p {
    margin: 0.5rem 0;
}

.stm-booking-success__payment {
    margin: 1.25rem 0;
    padding: 1rem 0 0;
    background: none;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

.stm-booking-success__payment h4 {
    font-size: 1em;
    font-weight: 600;
}

.stm-booking-success__portal {
    margin: 1.25rem 0 0.5rem;
}

.stm-booking-success .description {
    color: inherit;
    opacity: 0.75;
    font-size: 0.92em;
}

.stm-booking-success__email-warning {
    opacity: 0.85;
}

.stm-booking-form--success .stm-step-nav,
.stm-booking-form--success .stm-booking-nav,
.stm-booking-form--success .stm-booking-price-summary,
.stm-booking-form--success .stm-booking-final-confirm,
.stm-booking-form--success .stm-booking-final-auth {
    display: none;
}

.stm-dashboard-header {
    margin-bottom: 1.25rem;
}

.stm-dashboard-session {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.92rem;
}

.stm-dashboard-session .stm-portal-logout {
    margin: 0;
    padding: 0.45rem 0.95rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #475569 !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.stm-dashboard-session .stm-portal-logout:hover,
.stm-dashboard-session .stm-portal-logout:focus {
    border-color: var(--stm-auth-brand, #1e3a5f) !important;
    color: var(--stm-auth-brand, #1e3a5f) !important;
    background: #fff !important;
}

.stm-customer-dashboard__preview-badge,
.stm-customer-field--preview > .stm-customer-dashboard__preview-badge {
    margin: 0 0 1rem;
    padding: 0.65rem 0.9rem;
    border: 1px dashed #d97706;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.86rem;
    line-height: 1.45;
}

.stm-customer-dashboard--preview .stm-profile-form__actions .stm-profile-save,
.stm-customer-field--preview .stm-profile-form__actions .stm-profile-save {
    opacity: 0.55;
    cursor: not-allowed;
}

.stm-customer-dashboard section {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #dde3ea;
    border-radius: 8px;
}

.stm-initiative-card,
.stm-hotel-card,
.stm-leader-card {
    border: 1px solid #dde3ea;
    border-radius: 8px;
    padding: 1rem;
}

.stm-leaders-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.stm-leader-role {
    display: inline-block;
    margin: 0 0 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: #1e3a5f;
    color: #fff;
}

.stm-leader-role--lead {
    background: #1e3a5f;
    color: #fff;
}

.stm-leader-role--co-lead {
    background: #1e3a5f;
    color: #fff;
}

.stm-badge-sold-out {
    background: #dc3545;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.stm-badge-available {
    background: #28a745;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.stm-booking-item.stm-cancelled {
    opacity: 0.6;
    text-decoration: line-through;
}

.stm-cancel-booking,
.stm-voucher-redeem-form button,
.stm-assessment-form button,
.stm-expense-form button,
.stm-itinerary-day-form button {
    margin-left: 0.5rem;
    padding: 0.35rem 0.75rem;
    border: none;
    border-radius: 4px;
    background: #1e3a5f;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
}

.stm-form-message,
.stm-voucher-message {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.stm-form-message.stm-success,
.stm-voucher-message.stm-success {
    color: #155724;
}

.stm-form-message.stm-error,
.stm-voucher-message.stm-error {
    color: #721c24;
}

.stm-rc-warning {
    background: #fff3cd;
}

.stm-group-consent {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    font-size: 0.95rem;
}

.stm-group-consent label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
}

.stm-participants-list {
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stm-participants-list__empty {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
    opacity: 0.85;
}

.stm-leader-dashboard .stm-assessment-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: flex-start;
}

.stm-leader-dashboard .stm-assessment-form input,
.stm-leader-dashboard .stm-assessment-form textarea {
    max-width: 120px;
}

.stm-leader-dashboard .stm-expense-form label {
    display: inline-block;
    margin-right: 0.5rem;
}

.stm-satisfaction-prompt,
.stm-satisfaction-item {
    max-width: 720px;
    margin: 1.5rem auto 2rem;
    padding: 1.25rem;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    background: #fff;
}

.stm-satisfaction-section {
    border: none;
    margin: 0 0 1.25rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid #eef2f7;
}

.stm-satisfaction-section legend {
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding: 0;
}

.stm-satisfaction-field {
    margin-bottom: 0.65rem;
}

.stm-satisfaction-field label {
    display: block;
    font-size: 0.95rem;
}

.stm-satisfaction-field select,
.stm-satisfaction-field textarea {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-top: 0.25rem;
    padding: 0.45rem;
}

.stm-satisfaction-yesno .stm-satisfaction-choice {
    display: inline-block;
    margin-right: 1rem;
    font-weight: normal;
}

.stm-satisfaction-submit {
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 6px;
    background: #1e3a5f;
    color: #fff;
    cursor: pointer;
}

.stm-hotel-reviews {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eef2f7;
}

.stm-hotel-reviews ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.stm-hotel-rating {
    font-weight: 600;
    margin: 0.75rem 0 0;
}

.stm-hotel-stars-review {
    color: #f0ad4e;
}

.stm-qr-result {
    padding: 1rem 1.25rem;
    margin: 1rem;
    border-radius: 6px;
}

.stm-qr-result-success {
    background: #d4edda;
    color: #155724;
}

.stm-qr-result-error {
    background: #f8d7da;
    color: #721c24;
}

.stm-social-card--branded {
    max-width: 420px;
    margin: 1rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.25);
}

.stm-social-card--branded .stm-social-card-header {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.stm-social-card--branded .stm-social-card-title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.stm-social-card--branded .stm-social-card-km {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.stm-social-card--branded .stm-social-card-percentile,
.stm-social-card--branded .stm-social-card-sub {
    margin: 0.35rem 0;
    opacity: 0.92;
}

.stm-live-pricing,
.stm-booking-price-summary {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #f0f4f8;
    border-radius: 6px;
}

.stm-booking-price-summary {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    background: #eef4fa;
    border: 1px solid #c5d9ed;
    border-radius: 8px;
}

.stm-booking-price-summary--loading {
    opacity: 0.9;
}

.stm-booking-price-summary__hint {
    margin: 0 0 0.5rem;
}

.stm-booking-price-summary__total {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.stm-booking-price-summary__loading {
    margin: 0;
}

.stm-pricing-line {
    margin: 0.35rem 0 0;
    font-size: 0.95em;
}

.stm-cancellation-insurance-option {
    margin-bottom: 0.75rem;
}

.stm-cancellation-insurance-price {
    margin: 0.25rem 0 0 1.5rem;
}

.stm-badge-vote-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stm-leader-ski-stat-row {
    display: block;
    margin-bottom: 0.5rem;
}

.stm-leader-ski-stat-row input {
    width: 5rem;
    margin-left: 0.5rem;
}

.stm-travel-passport-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stm-travel-passport-inline .stm-passport-badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    background: #eef2f7;
    border-radius: 999px;
    font-size: 0.9rem;
}

.stm-segment-builder fieldset {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
}

.stm-pending-payment-notice {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #fff8e6;
    border: 1px solid #f0c36d;
    border-radius: 8px;
}

.stm-pending-payment-details {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.stm-booking-item.stm-booking-pending-highlight {
    outline: 2px solid #2271b1;
    background: #f0f6fc;
    border-radius: 6px;
    padding: 0.5rem;
}

.stm-partner-dashboard .stm-partner-error {
    color: #b32d2e;
}

.stm-partner-dashboard .stm-partner-stats-list {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

/* Brochure iniziativa — accordion comprensori */
.stm-initiative-brochure {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stm-brochure-section {
    border: 1px solid #dde3ea;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.stm-brochure-section-title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.stm-brochure-destinations-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stm-destination-panel {
    border: 1px solid #c3d0de;
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
}

.stm-destination-panel-title {
    cursor: pointer;
    font-weight: 600;
    padding: 0.85rem 1rem;
    list-style: none;
}

.stm-destination-panel-title::-webkit-details-marker {
    display: none;
}

.stm-destination-panel-body {
    padding: 0 1rem 1rem;
    border-top: 1px solid #dde3ea;
}

.stm-destination-meta,
.stm-destination-stats {
    color: #4a5568;
    font-size: 0.95rem;
}

.stm-destination-links ul,
.stm-destination-webcams {
    margin-top: 0.75rem;
}

.stm-brochure-webcam-embed {
    margin-top: 0.5rem;
    border-radius: 6px;
    overflow: hidden;
}

.stm-brochure-webcam-embed iframe {
    display: block;
    border: 0;
    max-width: 100%;
}

.stm-brochure-empty {
    color: #646970;
    font-style: italic;
}

.stm-language-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0.5rem 0;
}

.stm-language-switcher--select {
    display: block;
}

.stm-language-switcher__link {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    color: #1d2327;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.stm-language-switcher__link:hover,
.stm-language-switcher__link:focus {
    border-color: #2271b1;
    color: #2271b1;
}

.stm-language-switcher__link.is-active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    font-weight: 600;
}

.stm-language-switcher__select {
    min-width: 8rem;
    max-width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 0.95rem;
}

.stm-partner-card .stm-partner-content {
    margin-top: 0.75rem;
}

.stm-partner-contact-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.stm-partner-contact-list li + li {
    margin-top: 0.35rem;
}

.stm-booking-share-kit {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #dde3ea;
}

.stm-booking-share-kit .button {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    background: #135e96;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.stm-booking-share-kit .description {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: #646970;
}

