/*!
 * Website forms that also exist on paper: the two ways to use them (online, or a copy of the printed form),
 * the online account application in steps, and attached documents. Builds on the form styles in catalogue.css.
 */

/* ---------- Fill online / request a copy ---------- */
.ways { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 40px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); }
.way { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 30px; color: rgba(255, 255, 255, 0.88); font: 700 14.5px "Titillium Web", sans-serif; letter-spacing: 0.01em; transition: background-color 0.2s, color 0.2s; }
.way i { font-size: 14px; opacity: 0.85; }
.way:hover, .way:focus-visible { background: rgba(255, 255, 255, 0.14); color: #fff; }
.way.is-on { background: #fff; color: var(--ort-navy, #2e3192); }
.way.is-on:hover { background: #fff; color: #f4572e; }
.ways.is-light { background: #fff; border-color: #e5e8f1; box-shadow: var(--ort-sh-sm); }
.ways.is-light .way { color: var(--ort-navy, #2e3192); }
.ways.is-light .way:hover { background: var(--ort-soft, #f5f7fb); }
.ways.is-light .way.is-on { background: var(--ort-navy, #2e3192); color: #fff; }
.ways.is-light .way.is-on:hover { background: #f4572e; }

/* ---------- Fields ---------- */
.rq-fields.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rq-field.is-wide { grid-column: 1 / -1; }
.acc-legend { display: block; width: 100%; margin: 0 0 20px; padding: 0; border: 0; font: 700 24px/1.25 "Titillium Web", sans-serif; color: var(--ort-ink, #2e3192); }
.acc-sub, .rq-card h3.acc-sub { margin: 28px 0 14px; padding-top: 22px; border-top: 1px solid #eef0f6; font: 700 15px/1.3 "Titillium Web", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: #6b7489; }
.acc-sub.is-first, .rq-card h3.acc-sub.is-first { margin-top: 0; padding-top: 0; border-top: 0; }
.fb-kinds + .acc-sub.is-first { margin-top: 4px; }
.acc-rows { display: flex; flex-direction: column; gap: 14px; }
.acc-row .rq-field label { font-weight: 600; color: #566074; }
.acc-gap { margin-top: 24px; }
.acc-form fieldset.acc-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.acc-form .rq-areas { margin-top: 24px; }

/* ---------- Steps ---------- */
.acc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: -6px 0 30px; padding: 0; list-style: none; counter-reset: none; }
.acc-steps li { position: relative; }
.acc-steps button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 0 12px; border: 0; border-bottom: 3px solid #e7eaf2; background: none; color: #8a92a6; font: 700 14px "Titillium Web", sans-serif; text-align: left; cursor: default; transition: color 0.2s, border-color 0.2s; }
.acc-steps b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #eef0f6; color: #6b7489; font-size: 13px; transition: background-color 0.2s, color 0.2s; }
.acc-steps .is-on button { border-bottom-color: var(--ort-navy, #2e3192); color: var(--ort-navy, #2e3192); }
.acc-steps .is-on b { background: var(--ort-navy, #2e3192); color: #fff; }
.acc-steps .is-done button { border-bottom-color: #9ea6d6; color: #3d4277; cursor: pointer; }
.acc-steps .is-done b { background: #e5e7f7; color: var(--ort-navy, #2e3192); font-size: 0; }
.acc-steps .is-done b:before { content: "\f00c"; font: 900 11px "Font Awesome 5 Free"; }
.acc-steps .is-done button:hover { color: #f4572e; }
.acc-steps { display: none; }
.acc-js .acc-steps { display: grid; }
.acc-js .acc-step:not(.is-on) { display: none; }
.acc-js .acc-legend { margin-bottom: 22px; }

/* ---------- Account type ---------- */
.acc-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.acc-seg label { position: relative; margin: 0; cursor: pointer; }
.acc-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acc-seg span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 18px 16px 52px; border: 1.5px solid #d7dce8; border-radius: var(--ort-r, 12px); background: #fff; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.acc-seg span:before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c3c9d8; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.acc-seg b { font: 700 16px "Titillium Web", sans-serif; color: #171a4a; }
.acc-seg small { font-size: 13.5px; color: #6b7489; }
.acc-seg label:hover span { border-color: var(--ort-navy, #2e3192); }
.acc-seg input:checked + span { border-color: var(--ort-navy, #2e3192); background: #f6f7fd; box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.1); }
.acc-seg input:checked + span:before { border-color: var(--ort-navy, #2e3192); box-shadow: inset 0 0 0 4px #fff; background: var(--ort-navy, #2e3192); }
.acc-seg input:focus-visible + span { outline: 2px solid #f4572e; outline-offset: 2px; }
.acc-seg.is-invalid span { border-color: #d93025; }
[data-if][hidden] { display: none !important; }

/* ---------- Documents ---------- */
.acc-files { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.acc-file { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1.5px solid #e2e6ef; border-radius: var(--ort-r, 12px); background: #fff; transition: border-color 0.2s, background-color 0.2s; }
.acc-file-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--ort-r-sm, 8px); background: #eef0fb; color: var(--ort-navy, #2e3192); font-size: 17px; }
.acc-file-text { flex: 1; min-width: 0; }
.acc-file-text b { display: block; font: 700 15px/1.35 "Titillium Web", sans-serif; color: #171a4a; }
.acc-file-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #8a92a6; }
.acc-file-btn { position: relative; flex: none; margin: 0; cursor: pointer; }
.acc-file-btn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.acc-file-btn span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1.5px solid #d7dce8; border-radius: 30px; color: var(--ort-navy, #2e3192); font: 700 13.5px "Titillium Web", sans-serif; transition: border-color 0.2s, background-color 0.2s; }
.acc-file-btn:hover span, .acc-file-btn input:focus-visible + span { border-color: var(--ort-navy, #2e3192); background: var(--ort-soft, #f5f7fb); }
.acc-file-x { flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f3f4f8; color: #6b7489; cursor: pointer; }
.acc-file-x:hover { background: #fde8e3; color: #c2361a; }
.acc-file.is-set { border-color: #b9e0c9; background: #f6fbf8; }
.acc-file.is-set .acc-file-ic { background: #e3f4ea; color: #157347; }
.acc-file.is-set .acc-file-text small { color: #157347; }
.acc-file.is-bad { border-color: #f1b3a5; background: #fff6f4; }
.acc-file.is-bad .acc-file-text small { color: #b3361b; white-space: normal; }

/* ---------- Buttons and the end ---------- */
.acc-nav { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #eef0f6; }
.acc-nav .btn { height: 56px; }
.acc-next, .acc-send { margin-left: auto; min-width: 220px; }
.acc-js .acc-send { display: none; }
.acc-js .acc-form.is-last .acc-send { display: inline-flex; }
.acc-js .acc-form.is-last .acc-next { display: none; }
.acc-back[hidden] { display: none; }
.acc-ref { display: inline-block; margin: 0 auto 14px !important; padding: 6px 16px; border-radius: 30px; background: #eef0fb; color: var(--ort-navy, #2e3192); font: 700 16px "Titillium Web", sans-serif; letter-spacing: 0.04em; }
.acc-ref:empty { display: none; }
.acc-need { margin: 0; padding: 0; list-style: none; }
.acc-need li { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; font-size: 14.5px; line-height: 1.45; color: #3c4257; }
.acc-need i { flex: none; margin-top: 3px; color: var(--ort-navy, #2e3192); }
.cat-hero .ways { margin-top: -6px; }

/* ---------- Request a quote: preparing it online ---------- */
.rq-guide { padding: 26px 28px 26px; background: #fff; border: 1px solid #e5e8f1; border-radius: var(--ort-r-lg, 16px); box-shadow: var(--ort-sh-sm); scroll-margin-top: 110px; }
.rq-guide h2 { margin: 0 0 20px; font-size: 22px; text-transform: none; color: var(--ort-ink, #2e3192); }
.rq-guide ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.rq-guide li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 52px; font-size: 14px; line-height: 1.5; color: #566074; }
.rq-guide li > i { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #eef0fb; color: var(--ort-navy, #2e3192); font-size: 15px; }
.rq-guide li:not(:last-child):after { content: ""; position: absolute; top: 20px; left: 52px; right: 2px; border-top: 1.5px dashed #d6dbea; }
.rq-guide b { font: 700 16px/1.3 "Titillium Web", sans-serif; color: #171a4a; }

/* ---------- Feedback & complaints ---------- */
.fb-ways { margin: 4px 0 26px; }
.fb-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 24px; padding: 0; border: 0; }
.fb-kinds label { position: relative; margin: 0; cursor: pointer; }
.fb-kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-kinds span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 14px; border: 1.5px solid #d7dce8; border-radius: var(--ort-r, 12px); background: #fff; color: #3c4257; font: 700 14.5px "Titillium Web", sans-serif; text-align: center; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.fb-kinds span i { font-size: 20px; color: #8a92a6; transition: color 0.2s; }
.fb-kinds label:hover span { border-color: var(--ort-navy, #2e3192); }
.fb-kinds input:checked + span { border-color: var(--ort-navy, #2e3192); background: #f6f7fd; color: var(--ort-navy, #2e3192); box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.1); }
.fb-kinds input:checked + span i { color: #f4572e; }
.fb-kinds input:focus-visible + span { outline: 2px solid #f4572e; outline-offset: 2px; }
.fb-kinds.is-invalid span { border-color: #d93025; }
.fb-yesno { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.fb-photos { margin-top: 18px; }

@media (max-width: 991px) {
  .rq-guide ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rq-guide li:after { display: none; }
  .acc-steps span { display: none; }
  .acc-steps .is-on span { display: inline; }
  .acc-steps { grid-template-columns: auto auto auto auto; justify-content: start; }
  .acc-steps .is-on { flex: 1; }
}
@media (max-width: 767px) {
  .rq-fields.is-3 { grid-template-columns: 1fr; }
  .acc-row.rq-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-row.is-3.rq-fields { grid-template-columns: 1fr; }
  .acc-seg { grid-template-columns: 1fr; }
  .acc-legend { font-size: 21px; }
  .acc-nav .btn { height: 52px; }
  .acc-next, .acc-send { min-width: 0; flex: 1; }
  .fb-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways { display: flex; border-radius: 22px; }
  .way { flex: 1 1 auto; justify-content: center; padding: 0 14px; }
}
@media (max-width: 575px) {
  .rq-guide { padding: 22px 18px; }
  .rq-guide ol { grid-template-columns: 1fr; gap: 16px; }
  .rq-guide li { padding: 0 0 0 54px; min-height: 40px; }
  .acc-row.rq-fields { grid-template-columns: 1fr; }
  .acc-file { flex-wrap: wrap; }
  .acc-file-text { flex-basis: calc(100% - 54px); }
  .acc-file-btn { margin-left: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .way, .acc-steps button, .acc-steps b, .acc-seg span, .acc-file, .fb-kinds span { transition: none; }
}
