:root {
    --form-max-width: 400px;
}

/* Hero static image BEGIN*/
.hero {
    position: relative;
    width: 100%;
    height: var(--heroHeight);
    background: #000;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slide::after {
    content:'';
    position:absolute;
    left:0; top:0;
    width:100%; height:100%;
    display: inline-block;
    background: linear-gradient(rgba(0,0,0, var(--heroDarkening)),rgba(0,0,0, var(--heroDarkening)));
}

.slide>div.content {
    z-index: 99;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* height: calc(100% * ( var(--bigger) + var(--smaller) * var(--smaller))); */
    height: calc(100% * ( var(--bigger)));
}

.slide>div.content>div.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.heroText, .heroTextS {
    margin: 0;
    color: var(--white);
    text-align: center;
}

.heroTextS {
    color: #CEBD88;
    font-style: italic;
}
/* Hero static image END*/



section {
    position: relative;
    z-index: 0;
    width: 100%;

    padding-block: clamp(3rem, 8vw, 6rem);
    padding-inline: 1.5rem;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    background-color: var(--white);
}

section .title {
    margin-bottom: 1.5em;
}

section .title h3 {
    color: var(--main);
    font-style: italic;
}

section div.forma > div.title {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    margin-bottom: 1.5em;
}


section div.content {
    width: 100%;
    height: 100%;

    max-width: 1200px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: calc(clamp(2rem, 5vw, 4rem) * 1.5);
    align-items: start;
}

section div.kontaktai ul li svg {
    width: 24px;
    height: 24px;
    margin-right: 1.5rem;
    color: var(--text);
}

section div.kontaktai ul li svg.fb {
    width: calc(24px - var(--fb-icon-dif));
    height: auto;
    margin-left: calc(var(--fb-icon-dif) / 2);
    margin-right: calc(1.5rem + var(--fb-icon-dif) / 2);
}

section div.kontaktai ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

section div.kontaktai li {
    list-style-type: none;
    display: flex;
    line-height: 1.7;
    align-items: center;
}



section div.forma form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;

    width: 100%;
    max-width: var(--form-max-width);
    margin-inline: auto;
}

form button {
    margin-top: 1rem;
    background: none;
}

/* formos laukelio stilius BEGIN*/
.wave-group {
    position: relative;
}

.wave-group:has(textarea) {
    margin-top: 2rem;
}

.wave-group input {
    width: 100%;

    /* font-size: 16px; */
    font-size: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
    /* padding: 10px 10px 10px 5px; */
    padding: 0.65rem 0.65rem 0.65rem 0.3rem;
    display: block;

    border: none;
    border-bottom: 1px solid #777;
    background: transparent;
}

.wave-group textarea {
    font-size: clamp(1.125rem, 1.0739rem + 0.2273vw, 1.25rem);
    padding: 0.65rem 0.65rem 0.65rem 0.3rem;
    display: block;

    max-width: var(--form-max-width);
    min-width: calc(min(100%, var(--form-max-width))); /* do not allow horizontal shrinking */
    
    border: 1px solid #777;
    background: transparent;
}

.wave-group input:focus,
.wave-group textarea:focus {
    outline: none;
}

.wave-group label {
    color: #777;
    /* font-size: 18px;
    font-weight: normal; */
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    display: flex;
}

.wave-group .label-char {
    transition: 0.2s ease all;
    transition-delay: calc(var(--index) * .05s);
}

.wave-group input:focus ~ label .label-char,
.wave-group input:valid ~ label .label-char,
.wave-group input:not(:placeholder-shown) ~ label .label-char {
    transform: translateY(-20px);
    color: var(--text);
    /* font-size: 14px; */
    font-size: clamp(0.9375rem, 0.9119rem + 0.1136vw, 1rem);
    line-height: 1.5;
}

.wave-group textarea:focus ~ label .label-char,
.wave-group textarea:valid ~ label .label-char,
.wave-group textarea:not(:placeholder-shown) ~ label .label-char {
    transform: translateY(-40px);
    color: var(--text);
    font-size: clamp(0.9375rem, 0.9119rem + 0.1136vw, 1rem);
    line-height: 1.5;
}

.wave-group input:invalid:not(:placeholder-shown):not(:focus) {
    color: red;
}

.wave-group .bar {
    position: relative;
    display: block;
    width: 100%;
}

.wave-group .bar::before,
.wave-group .bar::after {
    content: '';
    height: 2px;
    width: 0;
    position: absolute;
    bottom: 0px;
    background: var(--dark-blue);
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.wave-group .bar::before {
    left: 50%;
}

.wave-group .bar::after {
    right: 50%;
}

.wave-group input:focus ~ .bar::before,
.wave-group input:focus ~ .bar::after {
    width: 50%;
}

.wave-group textarea:focus {
    border: 2px solid var(--dark-blue);
}

.offer {
    position: absolute;
    left: -9998px;
    top: -9997px;
}

/* formos laukelio stilius END*/


/* Responsiveness extras */

/* instead of dynamic triggering this... */
@media only screen and (max-width: 1100px) {
    .mobileCentering {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .mobileCentering ul {
        text-align: left;
    }

    .disableOnMobile {
        display: none !important;
    }
}




@media only screen and (max-width: 800px) {
    .slide > div.content {
        height: calc( var(--heroHeight) * (1 - 1 / var(--phi1) / var(--phi1)) );
        /* height: calc(100% * ( var(--bigger) + var(--smaller) * var(--smaller))); */
    }

    .slide img {
        object-position: bottom;
    }
}