/* The registration form lives inside the project's existing contact panel. */
#contact_sec.place-section:has(.rental-he) {
    position: relative; isolation: isolate; padding: 32px 0 28px;
}
#contact_sec:has(.rental-he) > .container {
    position: relative; width: 100%; max-width: 1250px; margin: auto; padding-inline: 28px;
}
#contact_sec:has(.rental-he) > .container > h2 {
    margin: 0 0 30px; padding: 0; text-align: center; font-size: clamp(28px,3vw,44px);
    line-height: 1.16; color: white; font-weight: 500;
}
#contact_sec:has(.rental-he) .place-part {
    display: grid; grid-template-columns: minmax(0,3fr) minmax(0,1fr); align-items: start;
    gap: 10px; margin: 0 -8px; max-width: none;
}
#contact_sec:has(.rental-he) .place-part::before { pointer-events: none; }
#contact_sec:has(.rental-he) :is(.right-place,.left-place) {
    min-width: 0; margin: 0; align-self: start; border-radius: 6px; box-shadow: 0 3px 18px #13294c1c;
}
#contact_sec:has(.rental-he) .right-place { padding: 34px; background: rgba(255,255,255,.97); }
#contact_sec:has(.rental-he) .right-place > h3 {
    margin: 0; padding: 0; color: #0e2756; font-size: clamp(28px,3vw,40px); line-height: 1.125; font-weight: 500;
}
#contact_sec:has(.rental-he) .place-form { padding-top: 16px; }
#contact_sec:has(.rental-he) .left-place {
    width: 100%; max-width: none; padding: 36px 16px 28px; text-align: center;
    background: linear-gradient(to top, #fff, rgba(255,255,255,.86));
}
#contact_sec:has(.rental-he) .logo-place { width: 100%; margin: 0 0 25px; }
#contact_sec:has(.rental-he) .logo-place img { display: block; width: min(100%,150px); max-width: none; height: auto; margin: auto; }
#contact_sec:has(.rental-he) .foot-call { line-height: 1; }
#contact_sec:has(.rental-he) .foot-call a {
    display: inline-flex; direction: ltr; align-items: center; color: #102554;
    font-size: 35px; line-height: 39px; font-weight: 700; text-decoration: none;
}
#contact_sec:has(.rental-he) .foot-call img { order: -2; width: 27px; max-width: none; height: auto; margin: 0 8px 0 0; }
#contact_sec:has(.rental-he) .foot-call strong { order: -1; width: auto; height: auto; background: none; margin: 0; }
#contact_sec:has(.rental-he) .foot-call strong::before { content: '*'; }
#contact_sec:has(.rental-he) .left-place > p { padding: 0; margin: 7px 0 18px; color: #384d70; font-size: 18px; line-height: 26px; }
#contact_sec:has(.rental-he) .whatsapp-btn-place .link {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; direction: ltr;
    background: #25d366; color: #fff; padding: 9px 16px; min-height: 40px;
    font-size: 16px; font-weight: 700; line-height: 22px; border-radius: 18px 4px;
}
#contact_sec:has(.rental-he) .whatsapp-btn-place .link img { width: 20px; height: auto; margin: 0; }
@media (min-width: 761px) {
    #contact_sec:has(.rental-he) :is(.right-place,.left-place) { align-self: stretch; }
    #contact_sec:has(.rental-he) .left-place { display: flex; flex-direction: column; align-items: center; }
}
@media (max-width: 760px) {
    #contact_sec.place-section:has(.rental-he) { padding: 24px 0 32px; }
    #contact_sec:has(.rental-he) > .container { padding-inline: 12px; }
    #contact_sec:has(.rental-he) > .container > h2 { margin-bottom: 18px; }
    #contact_sec:has(.rental-he) .place-part { grid-template-columns: minmax(0,1fr); }
    #contact_sec:has(.rental-he) .right-place { padding: 24px 18px; }
    #contact_sec:has(.rental-he) .left-place { padding: 20px; }
    #contact_sec:has(.rental-he) .logo-place { margin-bottom: 12px; }
    #contact_sec:has(.rental-he) .logo-place img { width: 88px; }
}
.rental-he {
    --rental-red: var(--red, #df4425);
    --rental-error: #a3321b;
    color: #142956;
    direction: rtl;
    text-align: start;
    container: rental / inline-size;
}
.rental-he, .rental-he *, .rental-he *::after { box-sizing: border-box; }
.rental-he fieldset { min-inline-size: 0; padding: 0; margin: 0 0 18px; border: 0; }
.rental-he legend, .rental-he summary { color: #142956; font: inherit; font-weight: 600; font-size: 20px; line-height: 1.25; }
.rental-he legend { float: none; display: block; margin: 0 0 8px; padding: 0; }
.rental-he .rental-fields, .rental-he .rental-files { display: grid; grid-template-columns: minmax(0,1fr); gap: 9px 20px; }
.rental-he .rental-files { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.rental-he .rental-field, .rental-he .rental-upload { min-width: 0; display: block; }
.rental-he .rental-field, .rental-he .rental-label { padding: 0; }
.rental-he .rental-label { display: block; color: #42516c; font-size: 15px; font-weight: 500; line-height: 20px; }
.rental-he .rental-required { color: var(--rental-red); font-weight: 700; }
.rental-he .rental-field input {
    --field-line: #8592a9;
    display: block; width: 100%; height: 37px; min-height: 0; padding: 4px 6px;
    font: inherit; font-size: 16px; color: #142956;
    border: 0; border-bottom: 1.4px solid var(--field-line); border-radius: 0;
    /* Keep the fractional edge visible on displays that round borders to whole pixels. */
    background: linear-gradient(to top, var(--field-line) .9px, transparent 1.9px) border-box;
}
.rental-he input::placeholder { color: #66738b; opacity: 1; }
.rental-he input:is([type=email],[type=tel]) { direction: ltr; text-align: right; }
.rental-he :is(input,summary,button):focus-visible, .rental-he .rental-upload:focus-within {
    outline: 2px solid #4268a6; outline-offset: 2px;
}
.rental-he details { border-block: 1px solid #d4dbe6; padding: 0; margin: 0 0 16px; }
.rental-he details[open] { padding-bottom: 12px; }
.rental-he summary {
    display: flex; align-items: center; flex-wrap: wrap; min-height: 44px; gap: 6px;
    list-style: none; cursor: pointer;
}
.rental-he summary::-webkit-details-marker { display: none; }
.rental-he summary small { font-weight: 400; font-size: 15px; }
.rental-he summary::after {
    content: ''; width: 9px; height: 9px; margin-inline: auto 5px;
    border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.rental-he details[open] summary::after { transform: rotate(225deg); }
.rental-he .rental-docs-intro, .rental-he .rental-help {
    margin: 0; padding: 0; line-height: 1.4; font-size: 15px; color: #314568;
}
.rental-he .rental-help { margin: 4px 0 10px; }
.rental-he .rental-upload {
    --upload-border: 2px;
    position: relative; isolation: isolate; cursor: pointer;
    padding: 8px 11px; background: #f4f6f9; border: var(--upload-border) solid #abb9d0; border-radius: 6px;
}
@media (hover: hover) {
    .rental-he .rental-upload:hover { background: var(--blue-sky, #d3def0); border-color: #4268a6; }
}
@media (prefers-reduced-motion: no-preference) {
    .rental-he .rental-upload { transition: background-color .15s ease, border-color .15s ease; }
}
.rental-he .rental-document-break { display: none; }
.rental-he .rental-picker {
    display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; min-height: 44px;
}
.rental-he .rental-pick-button {
    border: 1px solid #9caac0; border-radius: 4px; background: white; color: #142956;
    padding: 3px 9px; font-size: 15px; line-height: 1.5; white-space: nowrap;
}
.rental-he .rental-file-name { color: #465876; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.rental-he .rental-picker .wpcf7-form-control-wrap { display: contents; position: static; }
/* Keep the native file chooser as the click and keyboard target across the card, including its border. */
.rental-he .rental-picker input[type=file] {
    position: absolute; z-index: 1; inset: calc(-1 * var(--upload-border));
    width: calc(100% + 2 * var(--upload-border)); height: calc(100% + 2 * var(--upload-border)); max-width: none;
    margin: 0; border-radius: 6px; opacity: 0; cursor: pointer;
}
.rental-he .rental-picker input::file-selector-button { cursor: inherit; }
.rental-he .rental-notes {
    padding: 8px 12px; margin-bottom: 12px; border-inline-start: 2px solid #9eacc4; background: #f4f6f9;
    color: #314568; text-align: start; font-size: 14px; line-height: 1.55;
}
.rental-he .rental-notes :is(p, ol, ul, li) { margin: 0; padding: 0; font: inherit; color: inherit; }
.rental-he .rental-notes p + p { margin-top: 3px; }
.rental-he .rental-notes .rental-declaration { margin-block-start: 12px; }
.rental-he .rental-notes :is(strong, b) { font-weight: 700; }
.rental-he .rental-notes :is(ol, ul) { padding-inline-start: 2em; }
.rental-he .rental-notes li { display: list-item; }
.rental-he .rental-notes ol > li { list-style: decimal outside; }
.rental-he .rental-notes ul > li { list-style: disc outside; }
.rental-he .rental-notes .rental-declaration :is(p + p, ol, li + li) { margin-block-start: .6em; }
.rental-he .rental-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.rental-he .rental-consent { margin-inline-end: auto; font-size: 16px; }
.rental-he .rental-consent label {
    display: inline-flex; align-items: center; min-height: 44px; gap: 8px; padding: 0;
    color: #142956; font-size: 16px; font-weight: 400; line-height: 1.45;
}
.rental-he .rental-consent a { color: #1560ff; font-weight: 500; text-decoration: none; }
.rental-he .rental-consent a:is(:hover,:focus-visible) { text-decoration: underline; }
.rental-he .rental-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin: 3px; vertical-align: middle; accent-color: #142956; }
.rental-he .rental-consent .wpcf7-list-item { margin: 0; }
.rental-he .rental-submit {
    min-height: 44px; padding: 6px 24px; color: white; background: #152953; border: 0;
    border-radius: 18px 3px 18px 3px; font: inherit; font-size: 18px; font-weight: 600; cursor: pointer;
}
.rental-he .rental-submit-area {
    display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 8px;
}
.rental-he .rental-submit-area .wpcf7-spinner { display: none; }
.rental-he .rental-progress { position: relative; width: 20px; height: 20px; }
.rental-he .rental-progress span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.rental-he .rental-progress:has(span:not(:empty))::before {
    content: ''; display: block; width: 100%; height: 100%; box-sizing: border-box;
    border: 2px solid #b7c3d6; border-top-color: #142956; border-radius: 50%;
    animation: rental-progress-spin .8s linear infinite;
}
@keyframes rental-progress-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .rental-he .rental-progress:has(span:not(:empty))::before { animation: none; }
}
.rental-he .rental-field input:is(.wpcf7-not-valid,[aria-invalid=true]) {
    color: #872b18; background: #fff3ef; border-bottom: 2px solid var(--rental-red);
}
.rental-he .rental-upload:has([aria-invalid=true],.wpcf7-not-valid), .rental-he .rental-upload:has(.rental-local-tip) { border-color: var(--rental-red); background: #fff3ef; }
.rental-he .wpcf7-not-valid-tip, .rental-he .rental-local-tip {
    position: static; display: block; flex-basis: 100%; padding: 2px 0 0; margin: 0;
    color: var(--rental-error); background: transparent; font: inherit; font-size: 14px; line-height: 1.4;
}
.rental-he .rental-feedback:not([hidden]),
.wpcf7 form:is(.invalid,.unaccepted,.failed,.aborted,.spam,.payment-required):has(.rental-he) .wpcf7-response-output {
    display: block; background: #fff4f0; border: 1.5px solid var(--red,#df4425);
    border-radius: 7px; color: #a3321b; font: inherit; font-weight: 500; font-size: 16px;
    line-height: 1.45; margin: 12px 0 0; padding: 10px 14px; text-align: start;
}
.rental-he .rental-feedback[hidden], .right-place:has(.rental-he) > .required-fields-note { display: none; }
.wpcf7 form:has(.rental-feedback:not([hidden])) .wpcf7-response-output { display: none !important; }
#contact_sec:has(.rental-he) .place-video:has(.image) { background: #152b48; }
#contact_sec:has(.rental-he) .place-video .image { height: auto; }
#contact_sec:has(.rental-he) .place-video .image img { display: block; width: 100%; height: auto; }
#contact_sec:has(.rental-he) .place-video .image::before {
    z-index: 1; opacity: 1; background: linear-gradient(to bottom, #14294952 35%, #152b48);
}
@container rental (min-width: 360px) { .rental-he .rental-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@container rental (min-width: 570px) {
    .rental-he .rental-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .rental-he .rental-upload { display: flex; flex-direction: column; justify-content: space-between; min-height: 118px; }
    .rental-he .rental-document-break { display: inline; }
}
@container rental (max-width: 420px) {
    .rental-he .rental-actions { flex-direction: column; align-items: stretch; }
    .rental-he .rental-submit { width: 100%; }
    .rental-he .rental-field input { height: 40px; }
}
