/* ==========================================================================
   Service Contact Section (Premium Layout)
   ========================================================================== */

.zemyna-service-contact {
    position: relative;
    width: 100%;
    padding: 70px 0; /* Consistent 70px section rhythm */
    background-color: #faf9f6; /* Soft cream matching Home Certification */
    overflow: hidden;
}

.zemyna-service-contact__botanical {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    color: #4a5c51;
    pointer-events: none;
    z-index: 0;
}

.zemyna-service-contact__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--zemyna-max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--zemyna-container-padding, 20px);
}

.zemyna-service-contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem; /* Increased spacing on mobile */
}
@media (max-width: 1023px) {
    .zemyna-service-contact__botanical {
        top: 25%;
        left: 50%;
        width: 400px;
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .zemyna-service-contact__grid {
        grid-template-columns: 1fr 1.5fr; /* Left cert smaller, right form larger */
        gap: 10rem; /* Increased spacing on desktop */
        align-items: start;
    }
}

/* Left: Certification Area */
.zemyna-service-contact__cert {
    position: relative;
    z-index: 1;
}

.zemyna-service-contact__cert-botanical {
    position: absolute;
    z-index: 0;
    opacity: 0.15; /* Subtle opacity for faint look */
    pointer-events: none;
    transition: opacity 1.5s ease;
}

.zemyna-service-contact:hover .zemyna-service-contact__cert-botanical {
    opacity: 0.3; /* Slightly more visible on section hover */
}

.zemyna-service-contact__cert-botanical img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.05));
}

.zemyna-leaf-left {
    width: 180px;
    bottom: -30px;
    left: 20px;
    transform: rotate(-15deg);
}

.zemyna-leaf-right {
    width: 140px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) rotate(25deg);
}

.zemyna-service-contact__cert-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    text-align: center;
}

.zemyna-service-contact__cert-inner::before {
    /* Botanical subtle background for cert */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 600' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='200' cy='300' r='150' fill='%234a5c51' opacity='0.03' filter='blur(40px)' /%3E%3Cpath d='M100 400 Q150 200 300 150 Q200 300 100 400' stroke='%234a5c51' stroke-width='1' opacity='0.08' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
}

.zemyna-service-contact__cert-media {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(27, 38, 34, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.zemyna-service-contact__cert-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zemyna-service-contact__cert-title {
    position: relative;
    z-index: 1;
    font-family: var(--zemyna-font-primary, "Inter", sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    background-color: #1b2622;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    margin: 0 0 1rem 0;
}

.zemyna-service-contact__cert-subtitle {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--zemyna-font-primary, "Inter", sans-serif);
    font-size: 1rem;
    color: var(--zemyna-text-secondary, #4a5c51);
    margin: 0;
}



/* Right: Form Area */
.zemyna-service-contact__form-area {
    display: flex;
    flex-direction: column;
}

.zemyna-service-contact__heading {
    font-family: var(--zemyna-font-heading, Georgia, serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--zemyna-text-primary, #1b2622);
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.01em;
}

.zemyna-service-contact__description {
    font-family: var(--zemyna-font-primary, "Inter", sans-serif);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--zemyna-text-secondary, #4a5c51);
    margin: 0 0 3rem 0;
    max-width: 600px;
}

.zemyna-service-contact__description p {
    margin: 0 0 1rem 0;
}

.zemyna-service-contact__description p:last-child {
    margin-bottom: 0;
}

/* Contact Form 7 Global Styling for this section */
.zemyna-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Tighter on mobile */
}

.zemyna-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem; /* Tighter on mobile */
}

@media (min-width: 768px) {
    .zemyna-contact-form {
        gap: 1.5rem;
    }
    .zemyna-form-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.zemyna-form-field {
    display: flex;
    flex-direction: column;
}

/* Make full width fields span if inside row (fallback), or handle directly via flex */
.zemyna-contact-form .wpcf7-response-output {
    margin: 1.5rem 0 0 0 !important;
}

.zemyna-contact-form label {
    font-family: var(--zemyna-font-primary, "Inter", sans-serif);
    font-size: 0.95rem; /* Increased slightly */
    font-weight: 500;
    color: var(--zemyna-text-primary, #1b2622);
    margin-bottom: 0.25rem; /* Reduced excessive gap between label and input */
    line-height: 1.3;
}

/* Hide auto-generated <br> tags from CF7 to remove the huge vertical gap */
.zemyna-contact-form br {
    display: none;
}

/* Remove bottom margin from auto-generated <p> tags by CF7 */
.zemyna-contact-form p {
    margin: 0;
}

.zemyna-form-submit {
    margin-top: 0.5rem;
}

.zemyna-contact-form input[type="text"],
.zemyna-contact-form input[type="email"],
.zemyna-contact-form input[type="tel"],
.zemyna-contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(27, 38, 34, 0.08); /* Softer, more premium border */
    border-radius: 6px; /* Slightly rounder edges */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.015); /* Very faint depth */
    font-family: var(--zemyna-font-primary, "Inter", sans-serif);
    font-size: 1rem;
    color: var(--zemyna-text-primary, #1b2622);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother transition */
}

/* Specific fix for the tall message box */
.zemyna-contact-form textarea {
    min-height: 120px;
    height: 120px;
    resize: vertical; /* Allow user to pull down if they really need to, but default is small */
}

.zemyna-contact-form input[type="text"]:focus,
.zemyna-contact-form input[type="email"]:focus,
.zemyna-contact-form input[type="tel"]:focus,
.zemyna-contact-form textarea:focus {
    outline: none;
    border-color: rgba(74, 92, 81, 0.4);
    box-shadow: 0 6px 20px rgba(74, 92, 81, 0.08); /* Soft elegant glow */
    transform: translateY(-1px); /* Slight lift effect */
}

.zemyna-contact-form input::placeholder,
.zemyna-contact-form textarea::placeholder {
    color: rgba(27, 38, 34, 0.4);
}

.zemyna-contact-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--zemyna-font-primary, "Inter", sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    background-color: #1b2622;
    color: #ffffff;
    padding: 1.125rem 2.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-self: flex-start;
    margin-top: 0.5rem;
    /* Fake an arrow icon using background image */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'%3E%3C/path%3E%3Cpath d='m12 5 7 7-7 7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.2rem;
    padding-right: 3.5rem;
}

.zemyna-contact-form input[type="submit"]:hover {
    background-color: #3f5147;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(27, 38, 34, 0.15);
}

/* Handle CF7 validation notices elegantly */
.zemyna-contact-form .wpcf7-not-valid-tip {
    font-size: 0.85rem;
    color: #e53e3e;
    margin-top: 0.25rem;
    display: block;
}

.zemyna-contact-form .wpcf7-response-output {
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    margin: 1.5rem 0 0 0 !important;
}
