/* Reservation form of the car page (aracdetay.php + assets/js/ln-rezform.js, 2026-11-25): field errors, the error
   summary, the box of a form that came back, the sending state, hints, the phone "change search" button.
   Works on Klasik and on themes built on it (body.tm-meteor). */
.ln-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* fields */
#rezfrm .cd-err { display: block; margin: 5px 0 0; color: #d5392b; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
#rezfrm .cd-err:empty { display: none; }
#rezfrm .cd-yas { margin-top: 6px; }
html body #rezfrm .form-control[aria-invalid="true"], html body #rezfrm input[aria-invalid="true"], html body #rezfrm select[aria-invalid="true"] { border-color: #d5392b !important; box-shadow: 0 0 0 1px #d5392b !important; }
html body #rezfrm input[type="checkbox"][aria-invalid="true"] { outline: 2px solid #d5392b; outline-offset: 2px; box-shadow: none !important; }
#rezfrm .form-control:focus-visible, #rezfrm select:focus-visible { outline: 2px solid var(--ln-accent, #e5732a); outline-offset: 1px; }
#rezfrm .cd-ipucu, #rezfrm .cd-not, #rezfrm .cd-oneri { display: block; margin: 5px 0 0; color: #5f6b7a; font-size: 12.5px; font-weight: 400; line-height: 1.4; }
#rezfrm .cd-not:empty, #rezfrm .cd-oneri:empty { display: none; }
#rezfrm .cd-not { color: #8a5a00; }
#rezfrm .cd-oneri { color: var(--ln-navy, #2c3e50); }
#rezfrm .cd-oneri-b { margin: 0 0 0 4px; padding: 2px 10px; border: 1px solid var(--ln-accent, #e5732a); border-radius: 999px; background: #fff; color: var(--ln-accent-d, #b5651d); font: inherit; font-weight: 600; cursor: pointer; }
#rezfrm .cd-oneri-b:focus-visible { outline: 2px solid var(--ln-accent, #e5732a); outline-offset: 2px; }

/* the error summary and the box of a refused form */
#rezfrm .cd-ozet-h, #rezfrm .cd-geri { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #f1c4bf; border-radius: 12px; background: #fdf2f1; color: #7d2219; font-size: 14px; line-height: 1.45; }
#rezfrm .cd-ozet-h:focus, #rezfrm .cd-geri:focus { outline: 2px solid var(--ln-accent, #e5732a); outline-offset: 2px; }
#rezfrm .cd-ozet-h p, #rezfrm .cd-geri p { margin: 0; font-weight: 600; }
#rezfrm .cd-geri p + p { margin-top: 6px; font-weight: 400; }
#rezfrm .cd-ozet-h ul { margin: 6px 0 0; padding: 0 0 0 18px; }
#rezfrm .cd-ozet-h a { color: #7d2219; text-decoration: underline; }
#rezfrm .cd-geri-bilgi { border-color: #d5dbe3; background: #f5f7fa; color: var(--ln-navy, #2c3e50); font-weight: 400; }

/* focus ring of the payment cards and the invoice choices (as .cd-uy-c) */
.cd-od:has(input:focus-visible), .cd-fat-tip label:has(input:focus-visible) { outline: 2px solid var(--ln-accent, #e5732a); outline-offset: 2px; border-radius: 10px; }

/* price rows that are zero stay out */
.cd-summary .cd-row[hidden] { display: none; }
.cd-row.cd-arac span small.cd-ind { display: block; color: #1c8a4a; font-size: 12.5px; }

/* sending */
#rezfrm button.ln-gonder { cursor: progress; opacity: .85; }
.ln-spin { display: inline-block; width: 1em; height: 1em; margin: 0 8px -2px 0; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ln-spin .7s linear infinite; }
@keyframes ln-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ln-spin { animation: none; border-right-color: currentColor; opacity: .6; } }

/* phones: the search form behind "change dates or location" (the button looks like .rl-edit of the car list) */
.cd-edit { display: none; }
@media (max-width: 991px) {
    .cd.cd-mob:not(.cd-form-open) > .cd-layout > .cd-side { display: none; }
    .cd.cd-mob .cd-edit { display: block; width: 100%; margin: 0 0 14px; padding: 11px 14px; border: 1px solid var(--ln-line, #e3e8ee); border-radius: 12px; background: #fff; color: var(--ln-navy, #2c3e50); font-family: inherit; font-size: 14.5px; font-weight: 600; text-align: center; cursor: pointer; }
    .cd.cd-mob .cd-edit:focus-visible { outline: 2px solid var(--ln-accent, #e5732a); outline-offset: 2px; }
    .cd.cd-form-open .cd-edit::after { content: " ▴"; }
}
@media (min-width: 992px) { .cd-edit, .rl-edit.cd-edit { display: none !important; } }

/* desktop: the booking summary in the side column (#cdYap, moved there by ln-rezform.js, which also adds .cd-side-yap).
   The side column then runs the full height of the page and the summary stays in sight under the search form. */
.cd-yap { display: none; }
@media (min-width: 992px) {
    .cd-layout > .cd-side.cd-side-yap { position: static; align-self: stretch; }
    .cd-side-yap > .cd-yap:not([hidden]) { display: block; position: sticky; top: 12px; margin: 16px 0 0; padding: 16px; }
    .cd-yap .cd-yap-a { margin: 0 0 10px; color: var(--ln-navy, #2c3e50); font-size: 16px; font-weight: 700; line-height: 1.3; }
    .cd-yap .cd-yap-t { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
    .cd-yap .cd-yap-t dt { margin: 0; }
    .cd-yap .cd-yap-t dd { margin: 2px 0 0; color: var(--ln-navy, #2c3e50); font-size: 14px; font-weight: 600; line-height: 1.35; }
    .cd-yap .cd-yap-f { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 0 0; border-top: 1px solid var(--ln-line, #e3e8ee); }
    .cd-yap .cd-yap-f span { color: var(--ln-muted, #5f6b7a); font-size: 14px; font-weight: 600; }
    .cd-yap .cd-yap-f b { color: var(--ln-navy, #2c3e50); font-size: 20px; font-weight: 800; white-space: nowrap; }
    .cd-yap .btn { display: block; width: 100%; white-space: normal; }
    .cd-yap .btn:focus-visible { outline: 2px solid var(--ln-accent, #e5732a); outline-offset: 2px; }
}
