/* =========================================
   KAPCSOLAT OLDAL
   css/kapcsolat.css
   ========================================= */

/* --- Fő konténer --- */
.kapcsolat-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18rem 2rem 6rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===================== KÉRDEZNI SZERETNÉK GOMB ===================== */
.kerdez-btn {
    position: absolute;
    top: 12rem;
    right: 0;
    background: transparent;
    border: 1.5px solid #1a1a1a;
    padding: 0.75rem 2.8rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.kerdez-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

.btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

/* ===================== ÜDVÖZLŐ SZÖVEG ===================== */
.udvozlo {
    margin: 4rem 0 3rem;
    text-align: center;
}

.udvozlo p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: #333;
    letter-spacing: 0.02em;
}

/* ===================== 3 OSZLOPOS GRID ===================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 900px;
}

/* --- Bal és jobb oszlop --- */
.contact-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}

/* --- Ikonok --- */
.contact-icon svg {
    display: block;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.contact-icon:hover svg {
    opacity: 1;
}

/* --- QR kódok --- */
.contact-qr img {
    width: 130px;
    height: 130px;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* --- Feliratok --- */
.contact-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: #666;
    letter-spacing: 0.04em;
}

/* --- Középső kép --- */
.center-col img {
    width: 220px;
    height: auto;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* ===================== MODAL (FELUGRÓ ABLAK) ===================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-box {
    position: relative;
    background: #fff;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
}

/* Bezáró X gomb */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #1a1a1a;
}

/* Modal cím */
.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 1.8rem;
}

/* ===================== FORM STÍLUSOK ===================== */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #999;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox sor */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0;
    color: #666;
    cursor: pointer;
}

.checkbox-group label a {
    color: #333;
    text-decoration: underline;
}

/* Küldés gomb */
.submit-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.25s ease;
}

.submit-btn:hover {
    background: #444;
}

/* Sikeres küldés üzenet */
.form-success {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.form-success p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #555;
}

/* ===================== RESZPONZIVITÁS ===================== */
@media (max-width: 768px) {

    .kerdez-btn {
        position: static;
        margin-bottom: 1rem;
        align-self: flex-end;
    }

    .udvozlo {
        margin: 2rem 0;
    }

    .udvozlo p {
        font-size: 1.4rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Mobilon: email, facebook, kép sorrendben */
    .center-col {
        order: 3;
    }

    .center-col img {
        width: 160px;
    }
}