/* ===========================
   Contact Page
=========================== */
.contact-page {
    padding: 40px 0 80px;
}

.contact-page__header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-page__title {
    font-size: 36px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 12px;
}

.contact-page__intro {
    color: #64748B;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

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

/* ----- Map column ----- */
.contact-page__map-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    aspect-ratio: 1 / 1;
    min-height: 480px;
}

.contact-page__map,
.contact-page__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-page__map--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    color: #94A3B8;
    text-align: center;
    padding: 40px;
}

/* ----- Floating info card ----- */
.contact-card {
    position: absolute;
    left: 24px;
    bottom: 24px;
    background: #fff;
    border-radius: 14px;
    padding: 32px 24px;
    width: calc(100% - 48px);
    max-width: 380px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
    z-index: 2;
}
.contact-card__content > span small, .contact-card__content a small {
	text-decoration: underline;
	font-size: 14px;
}
 .contact-card__item svg {
	height: 28px;
	width: 28px;
}
.contact-card__title {
	font-size: 32px;
	font-weight: 700;
	color: #1A1A1A;
	margin: 0 0 48px;
	line-height: 1.2;
	text-align: left;
}

.contact-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-card__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #F0FAEC;
	color: #51A832;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	width: 64px;
}

.contact-card__content > span,
.contact-card__content a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	justify-content: flex-start;
	align-items: flex-start;
    font-size: 18px;
}

.contact-card__value {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
    text-decoration: none;
    line-height: 1.3;
    word-break: break-word;
}
.contact-card__value strong{
    font-weight: 600;
}
 
.contact-card__value small{
    font-weight: 400;
}
.contact-card__link {
    font-size: 13px;
    color: #64748B;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-card__link:hover {
    color: #51A832;
}

.contact-card__link--static {
    text-decoration: none;
    cursor: default;
}

/* ----- Form column ----- */
.contact-page__form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* CF7 styling overrides */
.contact-page__form-wrap .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-page__form-wrap .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-page__form-wrap label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 6px;
}

.contact-page__form-wrap input[type="text"], .contact-page__form-wrap input[type="email"], .contact-page__form-wrap input[type="tel"], .contact-page__form-wrap textarea {
	width: 100%;
	padding: 24px 14px;
	border: none;
	background: #F4F4F4;
	border-radius: 10px;
	font-size: 15px;
	color: #1A1A1A;
	transition: all 0.2s ease;
	font-family: inherit;
}
.hidden-fields-container {
	display: none;
}
.contact-page__form-wrap input:focus,
.contact-page__form-wrap textarea:focus {
    outline: none;
    background: #408a26;
    border-color: #51A832;
    box-shadow: 0 0 0 3px rgba(81, 168, 50, 0.15);
}

.contact-page__form-wrap textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-page__form-wrap input::placeholder,
.contact-page__form-wrap textarea::placeholder {
    color: #94A3B8;
}

/* Two columns row (email + phone) */
.contact-page__form-wrap .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
 

 

 

 

.contact-page__form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.contact-page__form-wrap .wpcf7 form.failed .wpcf7-response-output {
    border-color: #DC2626;
    background: #FEF2F2;
    color: #991B1B;
}

.contact-page__form-wrap .wpcf7-not-valid-tip {
    color: #DC2626;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* Empty form state */
.contact-page__form-empty {
    text-align: center;
    color: #94A3B8;
    padding: 40px;
}

/* ----- Responsive ----- */
@media (max-width: 992px) {
    .contact-page__layout {
        grid-template-columns: 1fr;
    }

    .contact-page__map-wrap {
        aspect-ratio: 16 / 10;
        min-height: 380px;
    }

    .contact-card {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 40px 0 60px;
    }

    .contact-page__title {
        font-size: 28px;
    }

    .contact-page__form-wrap {
        padding: 20px;
    }

    .contact-page__form-wrap .form-row-2 {
        grid-template-columns: 1fr;
    }

    .contact-card {
        position: relative;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        border-radius: 0 0 16px 16px;
    }

    .contact-page__map-wrap {
        aspect-ratio: auto;
        min-height: 0;
    }

    .contact-page__map {
        height: 320px;
    }
}
/* ===========================
   CF7 — visual cleanup
=========================== */

/* Hide screen-reader response (a11y still works via aria-live) */
.contact-page__form-wrap .screen-reader-response {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Remove default CF7 form margins */
.contact-page__form-wrap .wpcf7 form.wpcf7-form {
    margin: 0;
    padding: 0;
}

/* Hide CF7 spinner default — replace with our own loading state */
.contact-page__form-wrap .wpcf7-spinner {
    display: none;
}

/* When form is submitting — show loading on button */
.contact-page__form-wrap .wpcf7-form.submitting .wpcf7-submit {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.contact-page__form-wrap .wpcf7-form.submitting .wpcf7-submit::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cf7-spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes cf7-spin {
    to { transform: rotate(360deg); }
}

/* Validation errors — cleaner look */
.contact-page__form-wrap .wpcf7-not-valid {
    border-color: #DC2626 !important;
    background: #FEF2F2 !important;
}

.contact-page__form-wrap .wpcf7-not-valid-tip {
    color: #DC2626;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    display: block;
}

/* Hide the visual validation icon CF7 adds */
.contact-page__form-wrap .wpcf7-form.invalid .wpcf7-validation-errors,
.contact-page__form-wrap .wpcf7-form.unaccepted .wpcf7-acceptance-missing {
    display: none;
}
/* ===========================
   CF7 — Pretty validation
=========================== */

/* Hide default CF7 inline error tooltips — we use custom ones */
.contact-page__form-wrap .wpcf7-not-valid-tip {
    display: none !important;
}

/* Field wrapper */
.contact-page__form-wrap .form-field {
    position: relative;
    margin-bottom: 18px;
}

.contact-page__form-wrap .form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 6px;
}

/* ----- Inputs ----- */
.contact-page__form-wrap .cf-input,
.contact-page__form-wrap input[type="text"],
.contact-page__form-wrap input[type="email"],
.contact-page__form-wrap input[type="tel"],
.contact-page__form-wrap textarea {
    width: 100%;
    padding: 12px 44px 12px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    color: #1A1A1A;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.contact-page__form-wrap textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-page__form-wrap .cf-input:focus,
.contact-page__form-wrap input:focus,
.contact-page__form-wrap textarea:focus {
    outline: none;
    border-color: #51A832;
    box-shadow: 0 0 0 3px rgba(81, 168, 50, 0.15);
}

/* ----- Valid state (green check) ----- */
.contact-page__form-wrap .form-field.is-valid .cf-input,
.contact-page__form-wrap .form-field.is-valid input,
.contact-page__form-wrap .form-field.is-valid textarea {
    border-color: #51A832;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2351A832' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px top 13px;
    background-size: 18px 18px;
}

.contact-page__form-wrap .form-field.is-valid textarea {
    background-position: right 14px top 13px;
}

/* ----- Error state ----- */
.contact-page__form-wrap .form-field.has-error .cf-input,
.contact-page__form-wrap .form-field.has-error input,
.contact-page__form-wrap .form-field.has-error textarea,
.contact-page__form-wrap .wpcf7-not-valid {
    border-color: #DC2626 !important;
    background-color: #FEF2F2;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px top 13px;
    background-size: 18px 18px;
}

.contact-page__form-wrap .form-field.has-error .cf-input:focus,
.contact-page__form-wrap .form-field.has-error input:focus,
.contact-page__form-wrap .form-field.has-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* ----- Error message ----- */
.contact-page__form-wrap .cf-error {
    display: block;
    max-height: 0;
    overflow: hidden;
    font-size: 12px;
    color: #DC2626;
    font-weight: 500;
    margin-top: 0;
    transition: max-height 0.25s ease, margin-top 0.25s ease;
    line-height: 1.4;
}

.contact-page__form-wrap .cf-error.is-visible {
    max-height: 50px;
    margin-top: 6px;
}

.contact-page__form-wrap .cf-error::before {
    content: '⚠ ';
    font-weight: 700;
}

/* ----- Form shake on submit error ----- */
@keyframes cf-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-8px); }
    40%      { transform: translateX(8px); }
    60%      { transform: translateX(-5px); }
    80%      { transform: translateX(5px); }
}

.contact-page__form-wrap .wpcf7-form.is-shaking {
    animation: cf-shake 0.4s ease;
}

/* ===========================
   CF7 — Submit button states
=========================== */
 

.contact-page__form-wrap .cf-submit:hover,
.contact-page__form-wrap .wpcf7-submit:hover {
    background-color: #408a26;
    transform: translateY(-1px);
}

.contact-page__form-wrap .cf-submit:active {
    transform: translateY(0);
}

/* Submitting (CF7 adds .submitting class on form during AJAX) */
.contact-page__form-wrap .wpcf7-form.submitting .cf-submit,
.contact-page__form-wrap .wpcf7-form.submitting .wpcf7-submit {
    background-color: #94A3B8;
    color: #64748B;
    cursor: wait;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'><circle cx='12' cy='12' r='9' stroke-opacity='0.3'/><path d='M21 12a9 9 0 0 0-9-9'><animateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/></path></svg>");
}

/* Hide CF7's default spinner — we use button state instead */
.contact-page__form-wrap .wpcf7-spinner {
    display: none !important;
}

/* ===========================
   CF7 — Response banners
=========================== */
.contact-page__form-wrap .wpcf7-response-output {
    margin: 24px 0 0 !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    border: none !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: cf-slide-in 0.3s ease;
    display: none;
}

@keyframes cf-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
 /* Success */
.contact-page__form-wrap .wpcf7 form.sent .wpcf7-response-output {
    background: #ECFDF5;
    color: #065F46;
    border-left: 4px solid #10B981 !important;
    display: block;
}

.contact-page__form-wrap .wpcf7 form.sent .wpcf7-response-output::before {
    content: '✓';
    font-size: 18px;
    font-weight: 700;
    color: #10B981;
    flex-shrink: 0;
    line-height: 1.4;
}

/* Validation error */
.contact-page__form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.contact-page__form-wrap .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-page__form-wrap .wpcf7 form.payment-required .wpcf7-response-output {
    background: #FFFBEB;
    color: #92400E;
    border-left: 4px solid #F59E0B !important;
}

.contact-page__form-wrap .wpcf7 form.invalid .wpcf7-response-output::before,
.contact-page__form-wrap .wpcf7 form.unaccepted .wpcf7-response-output::before,
.contact-page__form-wrap .wpcf7 form.payment-required .wpcf7-response-output::before {
    content: '⚠';
    font-size: 18px;
    color: #F59E0B;
    flex-shrink: 0;
    line-height: 1.4;
}

/* Server / mail error */
.contact-page__form-wrap .wpcf7 form.failed .wpcf7-response-output,
.contact-page__form-wrap .wpcf7 form.aborted .wpcf7-response-output,
.contact-page__form-wrap .wpcf7 form.spam .wpcf7-response-output {
    background: #FEF2F2;
    color: #991B1B;
    border-left: 4px solid #DC2626 !important;
}

.contact-page__form-wrap .wpcf7 form.failed .wpcf7-response-output::before,
.contact-page__form-wrap .wpcf7 form.aborted .wpcf7-response-output::before,
.contact-page__form-wrap .wpcf7 form.spam .wpcf7-response-output::before {
    content: '✕';
    font-size: 18px;
    font-weight: 700;
    color: #DC2626;
    flex-shrink: 0;
    line-height: 1.4;
}

/* ===========================
   Form layout
=========================== */
.contact-page__form-wrap .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}



@media (max-width: 600px) {
    .contact-page__form-wrap .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-page__form-wrap .cf-submit,
    .contact-page__form-wrap .wpcf7-submit {
        width: 100%;
    }
}