/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
    background: var(--pink-light, #FCEEF4);
    min-height: 80vh;
}

/* ── Main layout ── */

.contact-main {
    padding: 80px 0 100px;
}

.contact-main__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ============================================
   BAL OLDAL
   ============================================ */

.contact-left__eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--coral);
    margin-bottom: 16px;
}

.contact-left__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    margin: 0 0 20px;
    position: relative;
}

.contact-left__paw {
    font-size: 1.2rem;
    position: relative;
    top: -4px;
}

.contact-left__subtitle {
    font-family: 'Monolineboho', cursive;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--coral);
    line-height: 1.4;
    margin: 0 0 24px;
}

.contact-left__desc {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--navy);
    opacity: 0.7;
    line-height: 1.7;
    margin: 0 0 40px;
    max-width: 380px;
}

/* ── Deko ── */

.contact-left__deco {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    margin: 0 0 40px;
}

.contact-left__deco img {
    width: auto;
    display: block;
}

.contact-left__deco img:nth-child(1) { height: 60px; }
.contact-left__deco img:nth-child(2) { height: 50px; }
.contact-left__deco img:nth-child(3) { height: 90px; }
.contact-left__deco img:nth-child(4) { height: 65px; }
.contact-left__deco img:nth-child(5) { height: 55px; }

/* ── Info blokkok ── */

.contact-left__info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contact-info-item {
    background: var(--white);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(2, 15, 89, 0.07);
}

.contact-info-item__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pink-light, #FCEEF4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item__icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    /* Fekete stroke -> coral szín */
    filter: brightness(0) saturate(100%) invert(58%) sepia(53%) saturate(1860%) hue-rotate(319deg) brightness(93%) contrast(92%);
}

.contact-info-item:hover .contact-info-item__icon {
    background: rgba(247, 192, 215, 0.55);
}

.contact-info-item p {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--navy);
    opacity: 0.75;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   FORM
   ============================================ */

.contact-right {
    position: sticky;
    top: 100px;
}

.contact-form-wrap {
    background: var(--white);
    padding: 40px 40px 36px;
    box-shadow: 0 20px 60px rgba(2, 15, 89, 0.08);
    position: relative;
}

.contact-form-wrap__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-form-wrap__title img {
    height: 28px;
    width: auto;
}

/* CF7 form stílus */
.contact-form-wrap .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* CF7 <p> wrapperek teljes szélességűek, nincs extra térköz */
.contact-form-wrap .wpcf7-form p {
    margin: 0;
    width: 100%;
}

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

.contact-form-wrap .wpcf7-form p {
    margin: 0;
}

/* Név + email egy sorban — a <p> a grid konténer */
.contact-form-wrap .wpcf7-form .contact-row > p {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin: 0;
    align-items: start;
}

/* A <br> a name és email között eltüntetve */
.contact-form-wrap .wpcf7-form .contact-row br {
    display: none;
}

/* A span wrapperek blokk szintűek */
.contact-form-wrap .wpcf7-form .contact-row .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap textarea {
    width: 100%;
    padding: 11px 18px;
    background: var(--pink-light, #FCEEF4);
    border: 1.5px solid transparent;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--navy);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.contact-form-wrap input[type="text"]:focus,
.contact-form-wrap input[type="email"]:focus,
.contact-form-wrap textarea:focus {
    border-color: var(--coral);
}

.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder {
    color: rgba(2, 15, 89, 0.4);
    font-style: italic;
}

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

/* Checkbox */
.contact-form-wrap .wpcf7-acceptance .wpcf7-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.contact-form-wrap .wpcf7-acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(2, 15, 89, 0.2);
    background: var(--pink-light, #FCEEF4);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    transition: border-color 0.2s, background 0.2s;
}

.contact-form-wrap .wpcf7-acceptance input[type="checkbox"]:checked {
    background: var(--coral);
    border-color: var(--coral);
}

.contact-form-wrap .wpcf7-acceptance input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 50%;
}

.contact-form-wrap .wpcf7-acceptance .wpcf7-list-item-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--navy);
    opacity: 0.7;
}

.contact-form-wrap .wpcf7-acceptance a {
    color: var(--coral);
    text-decoration: underline;
}

/* Submit */
.contact-form-wrap input[type="submit"] {
    width: 100%;
    padding: 16px;
    background: var(--coral);
    color: var(--white);
    border: none;
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.contact-form-wrap input[type="submit"]:hover {
    background: var(--navy);
}

/* Safe note */
.contact-form-wrap__safe {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--navy);
    opacity: 0.5;
    text-align: center;
    margin: 16px 0 0;
}

/* Virág deko a form sarokban */
.contact-form-wrap::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-image: url('/wp-content/themes/honnomushi/img/footer-flower-6.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1000px) {
    .contact-main__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact-right { position: static; }
}

@media (max-width: 600px) {
    .contact-main { padding: 60px 0 80px; }
    .contact-main__inner { padding: 0 20px; }
    .contact-left__info { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 28px 24px; }
    .contact-left__deco img { height: 40px !important; }
    .contact-left__deco img:nth-child(3) { height: 60px !important; }
}
/* ── Erős kényszerítés: minden mező teljes szélességű ── */
.contact-form-wrap .wpcf7-form input.wpcf7-text,
.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form textarea {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.contact-form-wrap .wpcf7-form > p,
.contact-form-wrap .wpcf7-form br {
    width: 100%;
}

/* CF7 néha br-eket rak a mezők közé — tüntessük el a felesleges térközt */
.contact-form-wrap .wpcf7-form br {
    display: none;
}

/* ── Validációs hibaüzenetek — kisebb, diszkrétebb ── */
.contact-form-wrap .wpcf7-not-valid-tip {
    font-family: var(--font-body);
    font-size: 0.72rem !important;
    color: var(--coral) !important;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.3;
    display: block;
}

/* Hibás mező piros kerete */
.contact-form-wrap .wpcf7-not-valid {
    border-color: var(--coral) !important;
}

/* Alsó összegző hibaüzenet (a form alján) */
.contact-form-wrap .wpcf7-response-output {
    font-family: var(--font-body);
    font-size: 0.8rem !important;
    border-width: 1.5px !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    margin: 16px 0 0 !important;
}
