/* Layout and title utilities are shared with the migrated namams/imonems/sutarciu forms.
 * The control/button/step rules below are the relevant subset of ../assets/vv.css,
 * scoped here because that stylesheet also contains unrelated global legacy rules.
 * Keep the original registration .active/.complete/.open states and JS selectors.
 */
.vv-registration { --reg-blue: #5dabff; --reg-line: #8c94a8; }
.vv-registration *, .vv-registration-page .vv-alert-wrap * { box-sizing: border-box; }
.vv-registration .form-reg-col-wrap, .vv-registration .form-reg-pane { min-width: 0; }
.vv-registration .form-registration form { display: block; }
.vv-registration .form-reg-pane { display: none; }
.vv-registration .form-reg-pane.open { display: block; }

/* Migrated wizard presentation, with the original registration state names. */
.vv-registration .wizard-step { display: flex; margin-left: 8px; cursor: pointer; }
.vv-registration .wizard-step-track { flex: 0; width: 2rem; margin-right: 2rem; margin-bottom: 2rem; }
.vv-registration .wizard-step-track::after { content: ''; display: block; width: 1px; height: 100%; background-color: #cdcfd0; margin: auto; }
.vv-registration .wizard-step:last-of-type .wizard-step-track::after { display: none; }
.vv-registration .wizard-step-dot { width: 24px; height: 24px; border-radius: 50%; background-color: #f2f4f5; border: 1px solid #cdcfd0; display: flex; }
.vv-registration .wizard-step-icon { display: none; margin: auto; }
.vv-registration .wizard-step-title { font-weight: 700; }
.vv-registration .wizard-step-text { padding-bottom: 2.5rem; }
.vv-registration .form-reg-step.active .wizard-step-dot, .vv-registration .form-reg-step.complete .wizard-step-dot { background-color: var(--reg-blue); border-color: var(--reg-blue); box-shadow: 0 8px 8px rgba(23,182,220,.08), 0 -2px 8px rgba(23,182,220,.08); }
.vv-registration .form-reg-step.active .wizard-step-dot { transform: scale(1.5); }
.vv-registration .form-reg-step.active .wizard-step-title, .vv-registration .form-reg-step.complete .wizard-step-title { color: var(--reg-blue); }
.vv-registration .form-reg-step.active .icon-minus, .vv-registration .form-reg-step.complete .icon-check { display: block; }
.vv-registration .form-reg-step.complete .icon-edit { display: inline-block; margin-left: 20px; }

/* Existing migrated controls: 12px labels, 54px fields and blue selection. */
.vv-registration fieldset { min-width: 0; padding: 0; border: 0; }
.vv-registration .control-wrap { position: relative; margin: 16px 0; }
.vv-registration .control-label { display: block; color: #59637a; font-size: 12px; line-height: 18px; }
.vv-registration .required > .control-label::after { content: ' *'; color: #dc3545; }
.vv-registration .control { display: block; width: 100%; min-width: 0; margin-top: 6px; border: 1px solid var(--reg-line); border-radius: .5rem; color: #000; font-size: 16px; line-height: 24px; padding: .875rem 1rem; }
.vv-registration .control.control--placeholder { color: #6c757d; }
.vv-registration .control-group { display: flex; }
.vv-registration .control-group .control { flex: 1; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.vv-registration .control-prefix { margin-top: 6px; background: #f8f9fa; border: 1px solid #e9ecef; margin-right: -1px; border-radius: 4px 0 0 4px; display: flex; align-items: center; padding: 0 .5rem; font-size: 12px; }
.vv-registration .control-select-list { position: absolute; z-index: 10; width: 100%; max-height: 300px; overflow-y: auto; background: #fff; box-shadow: 0 4px 8px rgba(67,67,67,.05), 0 8px 10px rgba(67,67,67,.08); border-radius: .5rem; }
.vv-registration .control-select-item { display: block; padding: .5rem 1rem; margin-bottom: 1px; transition: background-color .3s; }
.vv-registration .control-select-item:hover, .vv-registration input[type=radio]:focus + .control-select-item { background: var(--reg-blue); cursor: pointer; }
.vv-registration input[type=radio]:checked + .control-select-item { background: var(--reg-blue); color: #fff; }
.vv-registration fieldset:disabled .control--pseudo { background: #e1e1e1; color: #6c757d; pointer-events: none; }
.vv-registration .control--invalid .control { border-color: #dc3545; }
.vv-registration .control--invalid .control:focus { outline-color: #dc3545; }
.vv-registration .control--invalid .control-prefix { border-color: #dc3545; background: rgba(220,53,69,.7); }
.vv-registration .text-danger { color: #dc3545; }
.vv-registration .invalid-mail { display: block; margin-top: 8px; font-size: 14px; }
.vv-registration .d-none { display: none !important; }
.vv-registration .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Same migrated button and shared PHP arrow as the reference forms. */
.vv-registration .btn-vv-secondary, .vv-registration-page .vv-alert-btn { display: flex; align-items: center; justify-content: center; color: #0f0f0f; line-height: 24px; font-size: 16px; text-align: center; padding: 12px 24px; background: var(--reg-blue, #5dabff); border: 0; border-radius: 33px; min-height: 3rem; cursor: pointer; }
.vv-registration .btn-vv-secondary svg { margin-left: .5rem; transition: margin-left .3s; flex-shrink: 0; }
.vv-registration .btn-vv-secondary:hover, .vv-registration-page .vv-alert-btn:hover { color: #0f0f0f; background: #3596ff; text-decoration: none; }
.vv-registration .btn-vv-secondary:hover svg { margin-left: 1rem; }
.vv-registration .btn-prev { display: block; margin-top: 1rem; font-size: 12px; color: var(--reg-blue); padding: 0; background: transparent; }
.vv-registration .btn-prev:hover { text-decoration: underline; }
.vv-registration button:disabled { opacity: .65; cursor: wait; }

/* Registration-only notice, calendar, submit response and narrow-screen safeguards. */
.vv-registration .alert-info { padding: 1rem; border-radius: 6px; background: #f6fbff; }
.vv-registration .alert-icon { display: none; }
.vv-registration .mb-4 { margin-bottom: 1rem; }
.vv-registration .form-reg-calendar { margin-bottom: 28px; }
.vv-registration .clndr-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.vv-registration .clndr-header h2 { font-size: 22px; margin: 0; }
.vv-registration .clndr-actions { display: flex; gap: 8px; }
.vv-registration .btn-clndr { display: grid; place-items: center; padding: 0; width: 36px; height: 36px; border: 1px solid var(--reg-line); border-radius: 50%; color: var(--reg-blue); background: white; }
.vv-registration .btn-clndr::after { content: ''; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.vv-registration .clndr-prev::after { transform: rotate(-135deg); }
.vv-registration .btn-clndr i, .vv-registration .btn-clndr > svg { display: none; }
/* Override #main's content-table padding and first-row backgrounds for this calendar only. */
#main .vv-registration .form-registration .form-reg-calendar table { width: 100%; margin: 0; table-layout: fixed; border-collapse: separate; border-spacing: 3px; }
#main .vv-registration .form-registration .form-reg-calendar table tr { background: transparent; margin: 0; padding: 0; }
#main .vv-registration .form-registration .form-reg-calendar table tr th,
#main .vv-registration .form-registration .form-reg-calendar table tr td { text-align: center; padding: 0; border: 0; border-radius: 0; background: transparent; }
#main .vv-registration .form-registration .form-reg-calendar table tr th { font-size: 14px; font-weight: 500; padding-bottom: 10px; }
.vv-registration .clndr-day { display: grid; place-items: center; aspect-ratio: 1; max-height: 44px; margin-inline: auto; border-radius: 8px; color: #8c94a8; }
.vv-registration .clndr-day.allowed { background: #f6fbff; color: var(--reg-blue); cursor: pointer; }
.vv-registration .clndr-day.allowed:hover { background: #dae5fe; }
.vv-registration .clndr-day.active { background: var(--reg-blue); color: #fff; }
.vv-registration .clndr-day--adjecent:not(.allowed) { opacity: .5; }
.vv-registration .clndr-header h2 { font-weight: 500; line-height: 1.2; }
.vv-registration .loader { width: 18px; height: 18px; border: 2px solid #ffffff66; border-top-color: white; border-radius: 50%; animation: vv-registration-spin 1s linear infinite; }
@keyframes vv-registration-spin { to { transform: rotate(360deg); } }
.vv-registration-page .vv-alert-wrap { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: #110c5e66; font-family: Haffer, Arial, sans-serif; }
.vv-registration-page .vv-alert-content { width: 520px; max-width: 100%; padding: 32px; background: white; border-radius: 20px; text-align: center; }
.vv-registration-page .vv-alert-body { font-size: 18px; line-height: 1.5; margin: 16px 0 24px; }
.vv-registration-page .vv-alert-header h4 { font-size: 26px; font-weight: 500; }
.vv-registration-page .vv-alert--warning { border-top: 6px solid #ffda42; }
.vv-registration-page .vv-alert--danger { border-top: 6px solid #e0185b; }
.vv-registration-page .vv-alert--success { border-top: 6px solid #0b7f4d; }
/* Cancellation: request-form section/card, centered confirmation and x-button-link colors/sizing. */
.vv-registration-cancel { color: #0f0f0f; font: 16px/24px Haffer, Arial, sans-serif; padding: 48px 16px; background: #99aeff; }
.vv-registration-cancel .container { padding: 32px 20px; border-radius: 16px; background: #fff; }
.vv-registration-cancel .row { max-width: 704px; margin-inline: auto; text-align: center; }
.vv-registration-cancel .row > .col-lg-5:first-child { display: none; }
.vv-registration-cancel h2 { color: #0f0f0f; font-size: 28px; font-weight: 500; line-height: 36px; margin: 0 0 16px; }
.vv-registration-cancel .mt-4 { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.vv-registration-cancel .mt-4 > a { display: inline-flex; align-items: center; justify-content: center; width: 100%; max-width: 100%; min-height: 48px; padding: 12px 24px; border-radius: 33px; font: inherit; color: #0f0f0f; text-align: center; text-decoration: none !important; background: #e9ebf2; }
.vv-registration-cancel .mt-4 > a:hover { background: #e0e4ee; }
.vv-registration-cancel .mt-4 > .btn-vv-secondary { background: #5dabff; }
.vv-registration-cancel .mt-4 > .btn-vv-secondary:hover { background: #3596ff; }
.vv-registration-cancel .mt-4 > a:focus-visible { outline: 2px solid #110c5e; outline-offset: 3px; }
.vv-registration-cancel .btn-vv-secondary svg { fill: currentColor; }
@media (min-width: 768px) {
  .vv-registration-cancel { padding: 120px 24px; }
  .vv-registration-cancel .container { padding: 48px 38px; }
  .vv-registration-cancel h2 { font-size: 48px; line-height: 56px; margin-bottom: 20px; }
  .vv-registration-cancel .mt-4 { margin-top: 32px; flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .vv-registration-cancel .mt-4 > a { width: auto; }
}
@media (max-width: 540px) {
  .vv-registration .clndr-header h2 { font-size: 19px; }
  .vv-registration .clndr-actions { gap: 4px; }
}
/* The existing registration page's legacy tables must not widen the mobile viewport. */
.vv-registration-page .table-week-wrap { max-width: 100%; overflow-x: auto; }
@media (max-width: 359px) {
  .vv-registration .g-recaptcha { display: block; transform: scale(.8); transform-origin: left top; }
  .vv-registration button[is="button-submit"] { max-width: 100%; padding-left: 12px; padding-right: 12px; }
}
