/* ==================================================
   KAPCSOLAT – MAIN TARTALOM (IZOLÁLT)
   Csak: contact kártyák + űrlap + térkép
   Nem nyúl: header / hero / footer / globál CTA (.btn)
================================================== */

/* -------------------------
   SZEKCIÓ ALAPOK
------------------------- */
.contact-section,
.contact-form-section,
.map-section {
    padding: 80px 0;
    background: #f4f4f4;
}

.contact-form-section {
    background: #f4f4f4;
}

/* egységes oldal-háttér */

.contact-section .container,
.contact-form-section .container,
.map-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------
   SZÖVEGIGAZÍTÁS (DESKTOP + MOBIL)
   - minden main szöveg középen,
   - kivétel: űrlap mezők (label/input) balra
------------------------- */
.contact-section,
.map-section,
.contact-section .section-title,
.contact-section .section-lead,
.map-section .map-head,
.map-section .map-head h2,
.map-section .map-head p {
    text-align: center;
}

/* “Elérhetőségeink” bevezető szöveg középre + középen maradjon a max-width mellett */
.contact-section .section-lead {
    max-width: 720px;
    margin: 0 auto 40px;
}

/* Térkép alatti szöveg: közép, de sorkizárt (ahogy kérted) */
.service-areas {
    text-align: center;
}

.service-areas .area-inline,
.service-areas .area-note {
    text-align: justify;
    text-align-last: center;
}

/* ŰRLAP kivétel: mezők tartalma mindig balra */
.contact-form label,
.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form .form-note {
    text-align: left;
}

.contact-form .form-after-note {
    text-align: center;
}


/* Online árajánlat – alcím KÖZÉPRE (kizárás feloldása) */
.contact-form .form-head p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------
   CÍMEK / LEÍRÁSOK (main only)
------------------------- */
.section-title,
.contact-form .form-head h2,
.map-head h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #222;
}

.contact-form .form-head p,
.map-head p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 28px;
}

/* Űrlap cím alá narancs “vonal” (mint a mintában) */
.contact-form .form-head h2 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 18px;
    text-align: center;
}

.contact-form .form-head h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: #ff7a00;
}

/* ==================================================
   ELÉRHETŐSÉGI KÁRTYÁK
================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.contact-card {
    background: #f7f7f7;
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    min-height: 220px;
}

.contact-card h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #222;
    text-align: center;
}

.contact-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px;
    text-align: center;
}

.contact-link {
    display: inline-block;
    font-weight: 600;
    color: #ff7a00;
    text-decoration: none;
}

/* ==================================================
   ŰRLAP BOX
================================================== */
.contact-form {
    background: #f9f9f9;
    border-radius: 22px;
    padding: 48px 52px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* mezők */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff7a00;
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.15);
}

/* telefonszám prefix */
.phone-group {
    display: flex;
    align-items: stretch;
}

.phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: #eee;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-weight: 600;
    color: #333;
}

.phone-group input {
    border-radius: 0 10px 10px 0;
}

/* ==================================================
   DESKTOP ŰRLAP GRID (stabil)
================================================== */
@media (min-width: 901px) {

    /* általános sor-grid: 6 oszlop */
    .contact-form .form-row {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
        margin-bottom: 20px;
    }

    /* 1. sor */
    .form-group.name {
        grid-column: span 3;
    }

    .form-group.phone {
        grid-column: span 3;
    }

    /* email: bal oldalt rövidebb (mint a mintán) */
    .form-group.email {
        grid-column: span 3;
    }

    /* szolgáltatás + sürgősség */
    .form-group.service {
        grid-column: span 3;
    }

    .form-group.urgency {
        grid-column: span 3;
    }

    /* leírás + gomb blokk */
    .form-group.full {
        grid-column: 1 / span 4;
    }

    .form-actions {
        grid-column: 5 / -1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: stretch;
        gap: 12px;
        margin-top: 60px;
    }

    .form-actions .btn {
        width: 100%;
    }

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

    /* cím sor: 2 | 4 | 4 | 1 | 1 */
    .form-address-grid {
        display: grid;
        grid-template-columns: 2fr 4fr 4fr 1fr 1fr;
        gap: 16px;
        margin: 6px 0 22px;
        align-items: start;
    }
}



/* ==================================================
   TÉRKÉP / TERÜLET BOX
================================================== */
.map-card {
    background: #fff;
    border-radius: 22px;
    padding: 36px 40px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.map-head {
    margin-bottom: 18px;
}

.map-wrapper {
    border-radius: 16px;
    /* felül+alul lekerekítés */
    overflow: hidden;
    margin: 20px auto 24px;
}

.map-wrapper iframe {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 16px;
    /* extra biztosítás */
}

.service-areas {
    max-width: 900px;
    margin: 0 auto;
    font-size: 12px;
    line-height: 1.7;
    color: #777;
}

.area-divider {
    width: 48px;
    margin: 14px auto;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* ==================================================
   ŰRLAP ALATTI SZÖVEG FINOMÍTÁS
================================================== */
.form-note {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}

.form-after-note {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.form-after-note strong {
    color: #ff7a00;
    font-weight: 700;
}


/* ==================================================
   URLAP HIBA LEIRAS BOX MAGASSAG CSOKKENTESE 
================================================== */

/* TEXTAREA MAGASSÁG – visszafogás, hogy ne legyen túl magas */
.contact-form textarea {
    min-height: unset;
    height: auto;
}

/* Desktopon konkrét célmagasság */
@media (min-width: 901px) {
    .contact-form textarea {
        min-height: 120px;
        /* próbáld 130–160 között */
    }
}

/* ==================================================
   MOBIL
================================================== */
@media (max-width: 900px) {

    .contact-section,
    .contact-form-section,
    .map-section {
        padding: 56px 0;
    }

    /* dobozok mobilon picit kijjebb (1-2mm érzés) */
    .contact-section .container,
    .contact-form-section .container,
    .map-section .container {
        padding: 0 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        justify-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 420px;
        padding: 30px 22px;
        min-height: 210px;
    }

    .contact-form {
        padding: 26px 22px;
        border-radius: 18px;
    }

    /* mobilon az alap sorok 1 oszlopban */
    .contact-form .form-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 16px;
    }

    /* MOBIL CÍM: 6-os grid (2|4) + (4|1|1) */
    .form-address-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
        margin: 10px 0 18px;
        align-items: start;
        /* fontos */
    }

    .form-address-grid>.form-group.iranyitoszam {
        grid-column: 1 / span 2;
    }

    .form-address-grid>.form-group.varos {
        grid-column: 3 / span 4;
    }

    .form-address-grid>.form-group.utca {
        grid-column: 1 / span 4;
    }

    .form-address-grid>.form-group.emelet {
        grid-column: 5 / span 1;
    }

    .form-address-grid>.form-group.ajto {
        grid-column: 6 / span 1;
    }

    /* EMELET “lecsúszás” fix: label-ek magassága egységes */
    .form-address-grid .form-group label {
        min-height: 22px;
        display: flex;
        align-items: flex-end;
        line-height: 1.2;
        white-space: nowrap;
    }

    /* Térkép mobil magasság 
  .map-wrapper iframe { height: 260px; }

  /* Mobilon a térkép belül szélesebb (8mm helyett ~4mm érzés) 
  .map-card { padding: 24px 20px; }
  .map-wrapper {
    margin-left: -8px;
    margin-right: -8px;
  }
  .service-areas {
    margin-left: -8px;
    margin-right: -8px;
  }*/
}

/* ==================================================
   KAPCSOLAT – MOBIL FINOMÍTÁSOK (csak main)
================================================== */
@media (max-width: 900px) {

    /* ===== 1) CÍMEK + BEVEZETŐK DISZKRÉTEBBRE ===== */
    .contact-section .section-title,
    .contact-form-section .form-head h2,
    .map-section .map-head h2 {
        font-size: 22px;
        /* kisebb, diszkrétebb */
        line-height: 1.25;
        margin-bottom: 10px;
        color: #222;
        /* maradhat fekete */
    }

    .contact-section .section-lead,
    .contact-form-section .form-head p,
    .map-section .map-head p {
        font-size: 14px;
        /* kisebb */
        line-height: 1.6;
        color: #666;
        /* szürkébb, mint most */
        margin-bottom: 22px;
        /* ne legyen túl nagy “lyuk” */
    }

    /* ===== 2) ŰRLAP: CTA GOMB TELJES SZÉLESSÉG + NOTE LEJJEBB ===== */
    .contact-form .form-actions {
        width: 100%;
    }

    .contact-form .form-actions .btn,
    .contact-form .form-actions button.btn {
        width: 100%;
        /* a leírás mező széléig */
        display: flex;
        justify-content: center;
    }

    .contact-form .form-note {
        margin-top: 16px;
        /* picit lejjebb */
    }

    /* ===== 3) TÉRKÉP: MOBILON KIJJEBB + ALATTA A LISTA IS ===== */
    /* Alap: a map-card paddingje maradhat, de a térképet kijjebb húzzuk */
    .map-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* 16px paddingből csinálunk ~8px “látszó” belsőt */
    .map-wrapper {
        margin-left: -8px;
        margin-right: -8px;
        border-radius: 16px;
        overflow: hidden;
    }

    .map-wrapper iframe {
        border-radius: 16px;
    }

    /* a szolgáltatási terület szövegei ugyanarra a margóra fussanak */
    .service-areas {
        margin-left: -8px;
        margin-right: -8px;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* ==================================================
   ELÉRHETŐSÉGI KÁRTYÁK – FINOMÍTÁS
================================================== */

.contact-card {
    padding: 24px 24px;
    /* alacsonyabb */
    text-align: center;
    /* szöveg középen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* függőlegesen középre */
}

.contact-card p {
    margin-bottom: 8px;
    /* kevesebb levegő */
}

/* ==================================================
   SZEKCIÓK KÖZTI TÁVOLSÁG FINOMÍTÁS
================================================== */

.contact-section {
    padding-bottom: 56px;
}

.contact-form-section {
    padding-top: 56px;
    padding-bottom: 56px;
}

.map-section {
    padding-top: 56px;
}

@media (max-width: 900px) {
    .contact-section {
        padding-bottom: 30px;
    }

    .contact-form-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .map-section {
        padding-top: 30px;
    }
}


/* ==================================================
   CÍMEK ALÁ NARANCS ALÁHÚZÁS (GLOBÁL)
================================================== */

/* Elérhetőségek + Szolgáltatási terület */
.contact-section .section-title,
.map-section .map-head h2 {
    position: relative;
    padding-bottom: 14px;
}

.contact-section .section-title::after,
.map-section .map-head h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #ff7a00;
    transform: translateX(-50%);
    border-radius: 2px;
}



/* ==================================================
   LEVELEZŐ VISSZAIGAZOLÁS
================================================== */


.form-status {
    margin-top: 10px;
    font-weight: 600;
}

.form-status.success {
    color: #0a7a2f;
}

.form-status.error {
    color: #c0392b;
}



/* ==================================================
   IRANYITOSZAM ES UTCANEV BETOLTES
================================================== */


.street-autocomplete {
    position: relative;
}

.street-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    max-height: 260px;
    overflow: auto;
    z-index: 9999;
}

.street-item {
    padding: 10px 12px;
    cursor: pointer;
    line-height: 1.2;
}

.street-item:hover,
.street-item.is-active {
    background: rgba(0, 0, 0, .06);
}

.street-muted {
    padding: 10px 12px;
    color: rgba(0, 0, 0, .55);
    cursor: default;
}


.form-group.utca {
    position: relative;
}

.street-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    max-height: 220px;
    overflow: auto;
    z-index: 9999;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.street-dropdown .street-option {
    padding: 10px 12px;
    cursor: pointer;
    white-space: nowrap;
}

.street-dropdown .street-option:hover {
    background: rgba(0, 0, 0, .06);
}

/* ==================================================
   HIANYOS MEZO JEELZESE
================================================== */


/* hibás mező */
.form-error {
    border: 2px solid #e53935 !important;
    background: #fff5f5;
}

/* üzenet */
.form-status.error {
    color: #e53935;
    font-weight: 600;
    margin-top: 10px;
}