/* =====================================================================
   SAFE – stránka KONTAKT (převzato ze SCM, zlatá #C29B31)
   Bez fakturačních údajů. Adresa je součástí kontaktního boxu.
   ===================================================================== */

.contact-body {
    background-color: #F8F4F4;
    width: 100%;
}

.contact-page {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 100px;
}

/* Horní řádek: formulář + kontaktní info vedle sebe, zalomí se pod sebe */
.contact-top {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.contact-page textarea {
    font-family: "Inter", sans-serif;
}

/* Box s mapou (vlevo) a formulářem (vpravo) */
.contact-box {
    flex: 3 1 400px;
    min-width: 0;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #fff;
    box-shadow: 1rem 1rem 30px 10px rgba(0, 0, 0, .4);
}

.contact-map iframe {
    padding: 15px 0px;
    padding-left: 40px;
    width: 100%;
    height: 500px;
}

.contact-panel {
    padding: 30px 40px;
}

.contact-panel h1 {
    position: relative;
    padding: 0 0 10px;
    margin-bottom: 20px;
}

/* Zlaté podtržení nadpisu formuláře */
.contact-panel h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 4px;
    width: 180px;
    background-color: #C29B31;
}

.contact-panel-cs h1::after {
    width: 260px;
}

.field {
    width: 100%;
    border: 2px solid rgba(0, 0, 0, 0);
    outline: none;
    background-color: rgba(230, 230, 230);
    padding: .5rem 1rem;
    margin-bottom: 22px;
    transition: 1s;
    border-radius: 5px;
}

.field:hover {
    background-color: rgba(223, 189, 97, 0.4);
    border: 2px solid rgba(0, 0, 0, 0.2);
    transition: 1s;
}

.field:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(230, 230, 230) inset !important;
    box-shadow: 0 0 0 1000px rgba(230, 230, 230) inset !important;
    -webkit-text-fill-color: black !important;
    border: 2px solid rgba(0, 0, 0, 0) !important;
    border-radius: 5px !important;
    transition: 1s !important;
}

.contact-panel textarea {
    min-height: 150px;
}

.btn {
    width: 100%;
    padding: .5rem 1rem;
    background-color: transparent;
    font-size: 1.1rem;
    border: 2px solid #C29B31;
    color: black;
    border-radius: 15px;
    outline: none;
    cursor: pointer;
    transition: .5s;
}

.btn:hover {
    background-color: #C29B31;
    border: 2px solid transparent;
}

.field:focus {
    border: 2px solid rgba(0, 0, 0, .2);
    background-color: rgba(223, 189, 97, 0.4);
    transition: 1s;
}

/* Box s adresou / e-mailem / telefonem */
.contact-methods {
    flex: 1 1 260px;
    max-width: 340px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
    padding: 60px 40px;
    text-align: center;
    background-color: #fff;
    box-shadow: 1rem 1rem 30px 10px rgba(0, 0, 0, .4);
}

.contact-method {
    position: relative;
    width: 100%;
}

.contact-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #C29B31;
    width: 40px;
    text-align: center;
}

.contact-text {
    width: 100%;
    margin-left: 20px;
    text-align: center;
}

.contact-label {
    font-size: 19px;
    margin-bottom: 4px;
}

.contact-value {
    color: #C29B31;
    font-size: 15px;
    word-break: break-word;
}

.contact-value a {
    color: #C29B31;
    transition: color .2s ease;
}

.contact-text-email {
    padding-left: 0;
}

.contact-text-phone {
    padding-left: 0;
}

/* Hlášky formuláře */
/* ---------------------------------------------------------------------
   Responzivní úpravy (stejné jako SCM)
   --------------------------------------------------------------------- */

@media (max-width: 943px) {
    .contact-value {
        font-size: 16px;
    }
}

@media (max-width: 1550px) {
    .contact-page {
        gap: 40px;
    }

    .contact-top {
        gap: 40px;
    }

    .contact-value {
        font-size: 15px;
    }

    .contact-box {
        flex: 1 1 100%;
        max-width: 930px;
    }

    .contact-methods {
        flex: 1 1 100%;
        flex-direction: row;
        max-width: 930px;
        gap: 40px;
        padding: 45px 40px;
    }
}

@media (max-width: 890px) {
    .contact-methods {
        max-width: 100%;
        flex-direction: column;
    }
}

@media (max-width: 872px) {
    .contact-body {
        margin-top: 2vh;
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

    .contact-map iframe {
        padding: 0;
    }

    .contact-methods {
        max-width: 100%;
    }

    .contact-panel {
        padding: 30px 40px;
    }
}

@media (max-width: 826px) {
    .contact-value {
        font-size: 15px;
    }
}

@media (max-width: 386px) {
    .contact-label {
        font-size: 17px;
    }

    .contact-icon {
        font-size: 25px;
    }

    .contact-value {
        font-size: 12px;
    }

    .contact-text-email,
    .contact-text-phone {
        padding-left: 0;
    }
}
