/* Kontakt page v2
   Page-specific styles only. Existing layout/header/footer and base villa styles stay unchanged.
*/

.contact-map-hero {
    position: relative;
    min-height: 66vh;
    overflow: hidden;
    background: #e9eee9;
}

.contact-map-hero iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(.96) contrast(1.02);
}

.contact-intro-section {
    margin-top: -58px;
    position: relative;
    z-index: 5;
}

.contact-intro-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 38px 42px;
    border-radius: 30px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(31,92,69,.12);
    box-shadow: 0 24px 70px rgba(34,54,45,.14);
    text-align: center;
    backdrop-filter: blur(12px);
}

.contact-intro-card h1,
.contact-form-card h2 {
    margin: 0;
    font-family: var(--font-serif, Georgia, serif);
    color: #17241f;
    line-height: 1.06;
}

.contact-intro-card h1 {
    font-size: clamp(3.4rem, 7vw, 6.8rem);
}

.contact-intro-card p {
    max-width: 740px;
    margin: 18px auto 0;
    color: #4d5a54;
    line-height: 1.78;
}

.contact-intro-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.contact-section {
    padding: 86px 0;
}

.contact-section.soft {
    background: linear-gradient(180deg, rgba(246,249,244,1), rgba(255,255,255,1));
    border-top: 1px solid rgba(31,92,69,.08);
    border-bottom: 1px solid rgba(31,92,69,.08);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
}

.contact-bubble {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 34px 30px;
    min-height: 250px;
    background: #fff;
    border: 1px solid rgba(31,92,69,.10);
    box-shadow: 0 20px 54px rgba(34,54,45,.10);
}

.contact-bubble::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -74px;
    top: -74px;
    border-radius: 50%;
    opacity: .16;
}

.contact-bubble.phones::before {
    background: #1f8b5b;
}

.contact-bubble.address::before {
    background: #d89b2d;
}

.contact-bubble.email::before {
    background: #2d78d8;
}

.contact-bubble-icon {
    position: relative;
    z-index: 1;
    width: 78px;
    height: 78px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.15rem;
    margin-bottom: 24px;
    box-shadow: 0 16px 32px rgba(0,0,0,.14);
}

.contact-bubble.phones .contact-bubble-icon {
    background: linear-gradient(145deg, #1f8b5b, #49b17d);
}

.contact-bubble.address .contact-bubble-icon {
    background: linear-gradient(145deg, #d89b2d, #f0bd5e);
}

.contact-bubble.email .contact-bubble-icon {
    background: linear-gradient(145deg, #2d78d8, #65a3ee);
}

.contact-bubble h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.34rem;
    color: #17241f;
}

.contact-bubble p,
.contact-bubble ul {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: #5b6660;
    line-height: 1.65;
    font-size: 1rem;
}

.contact-bubble ul {
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.contact-bubble a {
    color: #1f5c45;
    font-weight: 850;
    text-decoration: none;
}

.contact-bubble a:hover {
    text-decoration: underline;
}

.contact-address-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.contact-address-list div {
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(31,92,69,.07);
    color: #24483b;
}

.contact-address-list strong {
    display: block;
    color: #17241f;
    margin-bottom: 3px;
}

.contact-form-section {
    padding: 86px 0 96px;
}

.contact-form-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 38px;
    border-radius: 32px;
    background: #fff;
    border: 1px solid rgba(31,92,69,.10);
    box-shadow: 0 24px 70px rgba(34,54,45,.12);
}

.contact-form-card h2 {
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.contact-form-card > p {
    max-width: 640px;
    margin: 16px auto 0;
    text-align: center;
    color: #5b6660;
    line-height: 1.75;
}

.contact-form {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.contact-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-field label {
    display: block;
    color: #243d32;
    font-weight: 800;
    margin-bottom: 8px;
    font-size: .94rem;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
    width: 100%;
    border: 1px solid rgba(31,92,69,.18);
    background: #f8faf7;
    border-radius: 17px;
    padding: 14px 15px;
    color: #17241f;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-field textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
    border-color: rgba(31,92,69,.55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31,92,69,.08);
}

.contact-field-hint {
    display: block;
    margin-top: 6px;
    color: #7a857f;
    font-size: .84rem;
    line-height: 1.45;
}

.contact-submit-row {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.contact-submit-row small {
    max-width: 440px;
    color: #6c7771;
    line-height: 1.55;
}

.flatpickr-calendar {
    font-family: inherit;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(34,54,45,.18);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover {
    background: #1f5c45;
    border-color: #1f5c45;
}

.flatpickr-day.today {
    border-color: #d89b2d;
}

@media (max-width: 1160px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-bubble {
        min-height: auto;
    }
}

@media (max-width: 820px) {
    .contact-map-hero {
        min-height: 460px;
    }

    .contact-intro-section {
        margin-top: -34px;
    }

    .contact-intro-card {
        padding: 30px 24px;
        border-radius: 24px;
    }

    .contact-section,
    .contact-form-section {
        padding: 68px 0;
    }

    .contact-field-row {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 30px 22px;
        border-radius: 26px;
    }
}

@media (max-width: 620px) {
    .contact-intro-card h1 {
        font-size: clamp(3rem, 16vw, 4.7rem);
    }

    .contact-bubble {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .contact-bubble-icon {
        width: 68px;
        height: 68px;
        border-radius: 22px;
        font-size: 1.85rem;
    }
}


/* V3 cleanup: darker top overlay on map so the menu stays readable */
.contact-map-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(13, 27, 20, .64) 0%,
            rgba(13, 27, 20, .48) 105px,
            rgba(13, 27, 20, .18) 210px,
            rgba(13, 27, 20, 0) 360px
        );
}

/* V3 cleanup: no card under map, only page title */
.contact-title-section {
    padding: 72px 0 30px;
    text-align: center;
}

.contact-title-section h1 {
    margin: 0;
    font-family: var(--font-serif, Georgia, serif);
    color: #17241f;
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: .92;
}

/* Old intro card no longer used */
.contact-intro-section,
.contact-intro-card,
.contact-intro-actions {
    display: none;
}

.contact-submit-row {
    justify-content: center;
}

.contact-submit-row .btn {
    min-width: 190px;
}

@media (max-width: 820px) {
    .contact-title-section {
        padding: 54px 0 20px;
    }
}

@media (max-width: 620px) {
    .contact-title-section h1 {
        font-size: clamp(3.3rem, 18vw, 4.8rem);
    }
}


/* V4 backend validation styles */
.contact-field input.is-invalid,
.contact-field textarea.is-invalid,
.contact-field select.is-invalid {
    border-color: #c43d32;
    background: #fffafa;
    box-shadow: 0 0 0 4px rgba(196, 61, 50, .10);
}

.contact-error {
    margin-top: 7px;
    color: #b3261e;
    font-size: .9rem;
    line-height: 1.45;
    font-weight: 750;
}

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.villa-info-note {
    margin-top: 22px;
}
