.appointment-section{background:#f6f8fa}
.appointment-card{max-width:940px;margin:auto;padding:32px;border:1px solid #dce4eb;border-radius:16px;background:#fff;color:#1B365D}
.appointment-card h1{font-size:30px;line-height:1.3;margin-bottom:8px}
.appointment-card h2{font-size:23px;line-height:1.35;margin:0 0 10px}
.appointment-card p{line-height:1.6;margin-bottom:12px}
.appointment-card [hidden]{display:none!important}
.appointment-card label{display:block;font-weight:600;line-height:1.5}
.appointment-card fieldset{border:0;margin:0;padding:0;min-width:0}
.appointment-card input:not([type=checkbox]):not([type=radio]),.appointment-card select{display:block;width:100%;height:48px;padding:10px 12px;margin:6px 0 12px;border:1px solid #b8c7d4;border-radius:10px;background:#fff;font:inherit;color:inherit}
.appointment-card input:focus-visible,.appointment-card select:focus-visible,.appointment-card button:focus-visible,.appointment-card a:focus-visible{outline:3px solid #0084a1;outline-offset:3px}
.appointment-card small{display:block;font-weight:400}
.appointment-card [aria-invalid=true]{border-color:#b43b3b}
.appointment-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px}
.appointment-fields label{min-width:0}
.appointment-fields small{font-size:13px;margin:-4px 0 10px;color:#52677d}
.appointment-identity-panel{width:100%}
.appointment-card .appointment-identity-panel .appointment-hint{margin-bottom:16px}
.appointment-identity-row{grid-template-columns:minmax(0,5fr) minmax(0,3fr) minmax(0,4fr);gap:8px 20px}
.appointment-passport-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 20px;margin-top:8px}
.appointment-passport-fields:has(label[hidden]){display:none}
.appointment-card .appointment-identity-type{margin:0 0 16px}
.appointment-identity-type legend{float:none;width:auto;margin:0 0 8px;padding:0;font-size:14px;font-weight:600}
.appointment-segments{display:flex;gap:4px;padding:4px;border:1px solid #dce4eb;border-radius:12px;background:#f6f8fa;max-width:540px}
.appointment-identity-panel .appointment-segments{max-width:none}
.appointment-card .appointment-segment{position:relative;flex:1;min-width:0;cursor:pointer}
.appointment-segment span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid transparent;border-radius:8px;text-align:center;font-size:14px;font-weight:500}
.appointment-identity-panel .appointment-segment span{height:100%;overflow-wrap:anywhere}
.appointment-segment input,.appointment-choice input{position:absolute;width:1px;height:1px;margin:0;padding:0;opacity:0}
.appointment-segment:has(input:checked) span{border-color:#1B365D;background:#1B365D;color:#fff;font-weight:600}
.appointment-segment:has(input:focus-visible) span{outline:3px solid #0084a1;outline-offset:2px}
.appointment-consent{display:flex;align-items:flex-start;gap:10px;margin:16px 0 0;padding:12px 14px;border:1px solid #dce4eb;border-radius:10px;background:#f8fafb}
.appointment-consent input{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:#087e98}
.appointment-consent label{min-width:0;font-size:14px;font-weight:400;overflow-wrap:anywhere;cursor:pointer}
.appointment-consent a{font-size:inherit;text-decoration:underline;text-underline-offset:3px;color:#08718b}
.appointment-steps{--appointment-step-gap:8px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--appointment-step-gap);width:100%;padding:0;margin:20px 0 24px;list-style:none}
.appointment-steps li{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;padding:0 4px;text-align:center;font-size:12px;line-height:1.35;color:#5a6d80;overflow-wrap:anywhere;min-width:0}
.appointment-steps li:before{content:"";position:absolute;top:13px;left:calc(-50% - var(--appointment-step-gap));width:calc(100% + var(--appointment-step-gap));height:2px;background:#e4ebf0}
.appointment-steps li:first-child:before{display:none}
.appointment-step-mark{z-index:1;display:grid;place-items:center;width:28px;height:28px;border:1px solid #dce4eb;border-radius:50%;background:#f1f4f7;font-size:12px;font-weight:700}
.appointment-steps li[aria-current=step]{color:#1B365D;font-weight:700}
.appointment-steps li[aria-current=step] .appointment-step-mark{border-color:#1B365D;background:#1B365D;color:#fff}
.appointment-steps li.is-complete .appointment-step-mark{border-color:#087e98;background:#087e98;color:#fff}
.appointment-steps li.is-complete:before{background:#087e98}
.appointment-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}
.appointment-hint,.appointment-meta{color:#52677d;font-size:14px}
.appointment-card section[data-panel]{padding-top:4px}
.appointment-verified{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;padding:10px 12px;margin-bottom:20px;background:#f1f8f8;border-radius:8px;font-size:14px}
.appointment-verified p{margin:0;min-width:0;overflow-wrap:anywhere}
.appointment-verified #appointment-welcome{flex:1}
.appointment-status-mark,.appointment-success-mark{display:grid;place-items:center;flex:none;border-radius:50%;background:#087e98;color:#fff}
.appointment-status-mark{width:22px;height:22px;font-size:14px}
.appointment-timer{font-size:13px;color:#52677d;font-variant-numeric:tabular-nums;white-space:nowrap}
.appointment-context{padding:14px 16px;border:1px solid #dce4eb;background:#f6f8fa;border-radius:10px;font-size:14px;overflow-wrap:anywhere}
.appointment-card .appointment-choice-field{margin:20px 0}
.appointment-choice-field legend{float:none;width:auto;margin:0 0 10px;padding:0;font-size:16px;font-weight:700;color:#1B365D}
.appointment-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.appointment-card .appointment-choice{position:relative;display:flex;align-items:center;padding:14px 42px 14px 16px;min-width:0;min-height:60px;border:1px solid #dce4eb;border-radius:10px;background:#fff;cursor:pointer;font-weight:500}
.appointment-choice-content{min-width:0;overflow-wrap:anywhere}
.appointment-choice-content>span{display:block}
.appointment-choice-content small{margin-top:6px;font-size:12px;color:#6c4f1e}
.appointment-choice-subtitle{margin-top:3px;font-size:13px;font-weight:400;color:#52677d}
.appointment-choice:has(input:checked){border-color:#087e98;background:#eff8fa;box-shadow:inset 0 0 0 1px #087e98}
.appointment-choice-check{display:none;position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#08718b;font-size:18px;font-weight:700}
.appointment-choice:has(input:checked) .appointment-choice-check{display:block}
.appointment-choice:has(input:focus-visible){outline:3px solid #0084a1;outline-offset:3px}
.appointment-choice:has(input:not(:disabled)):hover{border-color:#087e98}
.appointment-choice:has(input:disabled){cursor:default;background:#f6f8fa}
.appointment-choice-field:disabled{opacity:.75}
.appointment-days{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}
.appointment-days .appointment-choice{min-height:76px;font-size:15px;font-weight:600}
.appointment-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;margin:16px 0 24px}
.appointment-slots button{min-height:48px;padding:10px 8px;border:1px solid #b8c7d4;border-radius:10px;background:#fff;color:#1B365D;font:inherit;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;cursor:pointer}
.appointment-slots button:not(:disabled):hover{border-color:#087e98;background:#eff8fa}
.appointment-slots button[aria-pressed=true],.appointment-slots button[aria-pressed=true]:hover{border-color:#087e98;background:#087e98;color:#fff}
.appointment-slots button:disabled{font-size:13px}
.appointment-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:24px 0 0}
.appointment-identity-actions{justify-content:flex-end;margin-top:16px}
.appointment-identity-actions .appointment-primary{gap:10px}
.appointment-primary,.appointment-secondary,.appointment-text-action{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:10px 20px;border-radius:10px;font:inherit;line-height:1.5;cursor:pointer;text-align:center;text-decoration:none}
.appointment-primary{border:1px solid #1B365D;background:#1B365D;color:#fff;font-weight:600}
.appointment-secondary{border:1px solid #c9d5df;background:#fff;color:#1B365D}
.appointment-text-action{padding:10px 4px;border:1px solid transparent;background:transparent;color:#08718b;text-decoration:underline;text-underline-offset:3px;font-size:14px}
.appointment-primary:hover{background:#244873;color:#fff}
.appointment-secondary:hover{background:#f3f7fa;color:#1B365D}
.appointment-text-action:not(:disabled):hover{color:#1B365D}
.appointment-card button:disabled{opacity:.55;cursor:not-allowed}
.appointment-message{padding:14px;border:1px solid #c9a04f;border-radius:8px;background:#fff8e9;color:#65491c;margin:18px 0}
.appointment-card[aria-busy=true]{cursor:wait}
.appointment-sms-panel{max-width:440px;margin:auto;text-align:center}
.appointment-sms-panel .appointment-hint{margin-bottom:8px}
.appointment-masked-phone{display:block;font-size:23px;letter-spacing:.025em;margin:8px 0}
.appointment-code-timer{color:#52677d;font-size:14px;font-variant-numeric:tabular-nums}
.appointment-sms-panel form{margin:24px 0 16px}
.appointment-sms-panel form label{font-size:14px}
.appointment-card input.appointment-code-input:not([type=checkbox]):not([type=radio]){height:64px;max-width:320px;margin:10px auto 16px;text-align:center;font-size:28px;font-weight:600;letter-spacing:.4em;padding-left:1em;font-variant-numeric:tabular-nums}
.appointment-sms-panel form .appointment-primary{min-width:240px}
.appointment-card .appointment-meta{font-size:12px;margin-bottom:4px}
.appointment-sms-actions{justify-content:center;gap:12px 24px;margin-top:12px}
.appointment-summary-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px;margin:20px 0;padding:24px;border:1px solid #dce4eb;border-radius:12px;background:#f8fafb}
.appointment-summary-item{min-width:0}
.appointment-summary-item dt{margin:0 0 5px;font-size:12px;font-weight:400;line-height:1.4;color:#52677d}
.appointment-summary-item dd{margin:0;font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.appointment-success-heading{text-align:center;margin:16px 0 24px}
.appointment-success-mark{width:56px;height:56px;font-size:30px;margin:0 auto 14px}
.appointment-card .appointment-success-details{max-width:620px;margin:20px auto 24px;background:#fff}
.appointment-number{grid-column:1/-1;text-align:center;padding:16px;border-radius:10px;background:#eff8fa}
.appointment-number dt{font-size:14px;color:#08718b}
.appointment-number dd{font-size:32px;color:#1B365D;font-variant-numeric:tabular-nums;letter-spacing:.035em}
.appointment-success-actions{justify-content:center}
@media(max-width:991px){
  .appointment-identity-row,.appointment-passport-fields{grid-template-columns:1fr}
}
@media(max-width:768px){
  .appointment-fields,.appointment-choices,.appointment-summary-card{grid-template-columns:1fr}
  .appointment-days{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .appointment-card{padding:24px 16px;border-radius:12px}
  .appointment-card h1{font-size:25px}
  .appointment-card h2{font-size:21px}
  .appointment-steps{--appointment-step-gap:2px;margin:18px 0 20px}
  .appointment-steps li{padding:0 1px;font-size:10px;gap:5px}
  .appointment-step-mark{width:24px;height:24px;font-size:11px}
  .appointment-steps li:before{top:11px}
  .appointment-segment span{padding:8px;font-size:13px}
  .appointment-verified{gap:6px 8px;padding:10px;font-size:13px}
  .appointment-verified #appointment-welcome{flex-basis:calc(100% - 32px)}
  .appointment-verified .appointment-timer{margin-left:30px}
  .appointment-actions{flex-direction:column;align-items:stretch;gap:8px}
  .appointment-sms-panel form .appointment-primary{width:100%;min-width:0}
  .appointment-sms-actions{flex-direction:row;justify-content:space-between}
  .appointment-actions .appointment-text-action{align-self:center}
  .appointment-summary-card{grid-template-columns:1fr;gap:16px;padding:18px}
  .appointment-number dd{font-size:28px}
  .appointment-context{font-size:13px}
  .appointment-slots{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .appointment-days .appointment-choice{padding-left:12px;padding-right:32px;font-size:14px}
  .appointment-days .appointment-choice-check{right:10px}
  .appointment-choice-subtitle{font-size:12px}
}
@media(forced-colors:active){
  .appointment-choice:has(input:checked),.appointment-segment:has(input:checked) span{outline:2px solid Highlight;outline-offset:-2px}
}
@media(prefers-reduced-motion:no-preference){
  .appointment-choice,.appointment-slots button,.appointment-primary{transition:background-color .15s,border-color .15s}
}
