/* Kontakt page */
.contact-page {
    padding: 48px 0 100px;
}

.contact-intro {
    max-width: 680px;
    margin-bottom: 40px;
}

.contact-intro h1 {
    font-size: 40px;
    color: var(--ink);
    margin: 12px 0 16px;
}

.contact-intro p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}

/* Left column: details + slider */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 20px 22px;
}

.contact-row .ci-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-row .ci-icon svg { width: 21px; height: 21px; stroke: var(--green-dark); }

.contact-row h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
    margin-bottom: 4px;
}

.contact-row p, .contact-row a {
    font-size: 15.5px;
    color: var(--ink);
    line-height: 1.5;
}

.contact-row a:hover { color: var(--green-dark); }

/* Building slider */
.house-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: var(--green-light);
}

.house-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.house-slide.is-active { opacity: 1; visibility: visible; }
.house-slide img { width: 100%; height: 100%; object-fit: cover; }

.house-dots {
    position: absolute;
    z-index: 2;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.house-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.house-dots button.is-active { background: #fff; transform: scale(1.25); }

.house-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.house-arrow:hover { background: #fff; }
.house-arrow svg { width: 18px; height: 18px; stroke: var(--ink); }
.house-prev { left: 12px; }
.house-next { right: 12px; }

/* Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 36px;
}

.contact-form-wrap h2 {
    font-size: 26px;
    color: var(--ink);
    margin-bottom: 6px;
}

.contact-form-wrap .cf-sub {
    color: var(--ink-soft);
    font-size: 15px;
    margin-bottom: 24px;
}

.contact-form .cf-field {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 7px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    color: var(--ink);
    background: var(--cream);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 13px 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
    background: var(--white);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

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

.contact-form button {
    width: 100%;
    margin-top: 4px;
}

.cf-success {
    display: none;
    background: var(--green-light);
    color: var(--green-dark);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 6px;
}

.cf-success.is-visible { display: block; }

/* Veateade */
.cf-error {
    display: none;
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #FDECEA;
    color: #A9331F;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.cf-error.is-visible { display: block; }

/* Robotilõks – peidetud inimese eest */
.cf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cf-note {
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* Map */
.contact-map {
    margin-top: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 21 / 8;
}

.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* Responsive */
@media (max-width: 900px) {
    .contact-intro h1 { font-size: 32px; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-map { aspect-ratio: 3 / 2; }
}

@media (max-width: 560px) {
    .contact-form-wrap { padding: 28px 22px; }
    .contact-form .cf-row { grid-template-columns: 1fr; gap: 0; }
}
