/* New site additions on top of the legacy style.css. */

#formContainer input[type=date],
#formContainer input[type=email],
#formContainer input[type=tel],
.priceCheck input[type=date] {
    display: block;
    width: 100%;
    height: 44px;
    font-size: 1.8rem;
    border: 1px solid #CED0D2;
    padding: 0 10px;
    background-color: #FFF;
}

.priceCheck {
    margin-top: 40px;
}

.priceCheck button {
    display: flex;
    background-color: rgba(216, 0, 0, 1.00);
    height: 60px;
    color: #FFF;
    font-size: 2rem;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
}

.vehicleMainImg {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 20px;
}

/* All 12 months stay visible: no calendar JS. */
.yearBreak + .yearBreak {
    margin-top: 20px;
}

.seasonList {
    margin: 0 0 20px 20px;
    list-style: disc;
}

.quoteBox {
    margin-top: 20px;
}

.quoteBox table {
    width: 100%;
    border-collapse: collapse;
}

.quoteBox td {
    padding: 6px 0;
    border-bottom: 1px solid #D8D8D8;
}

.quoteBox td + td {
    text-align: right;
    white-space: nowrap;
}

.quoteBox .quoteTotal td {
    font-weight: 600;
    border-bottom: 2px solid #D8D8D8;
}

/* Honeypot: hidden from people, filled in by bots. */
.honey {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Language menu (i18n.go): the current flag opens a list of the 7 sites. */
#headerRight {
    flex-flow: row;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
}

.langSelect {
    position: relative;
}

.langSelect summary {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 8px;
    border-radius: 4px;
    list-style: none;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.langSelect summary::-webkit-details-marker {
    display: none;
}

.langSelect summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #777;
    border-bottom: 1.5px solid #777;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s;
}

.langSelect details[open] summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.langSelect summary:hover::after,
.langSelect details[open] summary::after {
    border-color: #D80000;
}

.langSelect summary:focus-visible,
.langSelect a:focus-visible {
    outline: 2px solid #D80000;
    outline-offset: -2px;
}

.langSelect ul {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1001;
    min-width: 230px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #FFF;
    border: 1px solid #E4E4E4;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.langSelect li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.langSelect li a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 1.6rem;
    line-height: 1.2;
    color: #222;
    white-space: nowrap;
    text-decoration: none;
}

.langSelect li a:hover {
    background: #F7F7F7;
    color: #D80000;
}

.langSelect a[aria-current] {
    font-weight: 600;
}

.langSelect a[aria-current]::after {
    content: '';
    width: 5px;
    height: 10px;
    margin: 0 2px 3px auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.langFlag {
    display: block;
    width: 24px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); /* white flag edges stay visible */
}

.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* 1024-1365px: logo, menu, language menu and contact button in one row
   (the legacy menu wraps to two lines here); German labels are the longest. */
#menuPrimary a { white-space: nowrap; }
#headerRight { margin-left: 10px; }
@media only screen and (min-width: 1024px) and (max-width: 1279px) {
    #menuPrimary a { margin-left: 18px; }
}
@media only screen and (min-width: 1024px) and (max-width: 1199px) {
    #logo img { height: 36px; }
    #menuPrimary a { margin-left: 12px; font-size: 1.3rem; }
}
@media only screen and (min-width: 1200px) and (max-width: 1365px) {
    html:lang(de) #logo img { height: 40px; }
}
@media only screen and (min-width: 1024px) and (max-width: 1199px) {
    html:lang(de) #logo img { height: 30px; }
    html:lang(de) #menuPrimary a { margin-left: 10px; font-size: 1.2rem; }
}

/* Phones: a smaller logo leaves room for the language menu. */
@media only screen and (max-width: 567px) {
    #headerRight { gap: 2px; }
    .langSelect summary { padding: 0 6px; }
    #logo img { height: 30px; }
}

@media only screen and (max-width: 374px) {
    #logo img { height: 25px; }
}

/* Legacy slider without its JS (vehicle pages, gumenjak page): the gallery is a grid of thumbnails; a click opens the large image. */
#adomGallery .splide__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
#adomGallery .splide__slide a { display: block; overflow: hidden; border-radius: 6px; }
#adomGallery .splide__slide img { display: block; width: 100%; height: auto; }
@media only screen and (max-width: 767px) { #adomGallery .splide__list { grid-template-columns: repeat(2, 1fr); } }

/* RESPONSIVE FIXES (new site). Legacy look stays; these only stop overflow,
   make tap targets 44px on touch screens and scale the page on big screens. */

/* Tap targets of at least 44px. Where the legacy look must stay, an invisible
   area around the element takes the tap. */
@media only screen and (max-width: 1023px) {
    .headerContactBtn { position: relative; }
    .headerContactBtn::before { content: ''; position: absolute; inset: -11px 0; }
}
a.vehicleBadge { position: relative; }
a.vehicleBadge::after { content: ''; position: absolute; inset: -9px 0; }
.googleBadge { min-height: 44px; }
#goToFormBtn { height: 44px; }
.formRowCheckboxGroup { padding: 9px 0; }
.checkboxContainer { display: inline-block; min-height: 44px; padding-top: 11px; padding-bottom: 11px; }
.checkboxContainer .checkboxCheckmark { top: 11px; }
@media only screen and (max-width: 767px) {
    footer .footerContactBox a { margin-top: 0; padding: 10px 0; }
}

/* Big screens (showroom TVs): scale the whole 1460px legacy layout instead of
   a narrow strip with small text. Media queries still see the real width. */
/* The fancybox gallery sizes itself from the window in px: undo the zoom. */
@media only screen and (min-width: 2400px) { html { zoom: 1.5; } .fancybox-container { zoom: calc(1 / 1.5); } }
@media only screen and (min-width: 3200px) { html { zoom: 2; } .fancybox-container { zoom: .5; } }

/* Documents form (/dokumenti/): radios, file inputs and the consent box. */
.docKinds { display: flex; flex-wrap: wrap; gap: 0 20px; }
.docKinds label { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.docKinds input { width: 20px; height: 20px; accent-color: #D80000; }
#formContainer input[type=file] { display: block; width: 100%; min-height: 44px; padding: 6px; font-family: inherit; font-size: 1.6rem; border: 1px solid #CED0D2; background: #FFF; }
#formContainer input[type=file]::file-selector-button { min-height: 32px; margin-right: 10px; padding: 0 14px; border: 0; border-radius: 6px; background: #F2F2F2; font: inherit; cursor: pointer; }
#formContainer .checkboxContainer { line-height: 1.4; }
#formContainer .checkboxContainer .checkboxCheckmark { top: 12px; }
.priceCheck .rowSubmit, #formContainer .rowSubmit { margin-top: 20px; }
#formContainer + h3 { margin-top: 40px; }

/* Thanks page: the content link colour made the button text red on red. */
a.btn.btnRed { color: #FFF; }
.formSuccessNotification .btn { display: inline-flex; }
