/* --- CSS STYLY --- */
.custom-contacts-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    font-family: inherit;
}

.contact-card {
    flex: 1;
    min-width: 250px;
    background-color: #f9f9f9;
    padding: 30px 20px; /* Zvětšeno horní odsazení kvůli budoucím fotkám */
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Vycentruje vše včetně budoucí fotky */
}

.contact-card:hover {
    border-color: #ccc;
    transform: translateY(-2px);
}

/* Styl pro budoucí fotku */
.contact-img {
    width: 120px;       /* Velikost fotky */
    height: 120px;
    object-fit: cover;  /* Ořízne fotku aby se nedeformovala */
    border-radius: 50%; /* Udělá z fotky kruh */
    margin-bottom: 15px;
    border: 3px solid #fff; /* Bílý rámeček kolem fotky */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Jemný stín */
    background-color: #e0e0e0; /* Šedá barva, pokud se fotka nenačte */
}

.contact-name {
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #333;
}

.contact-role {
    font-size: 0.9em;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-links a {
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
    color: #D40D2B;
    font-weight: 500;
}

.contact-links a:hover {
    text-decoration: underline;
    color: #000;
}

@media (max-width: 600px) {
    .custom-contacts-wrapper {
        flex-direction: column;
    }
}

/* --- ROZLOŽENÍ KONTAKTNÍ STRÁNKY (Bez stylů pro tým) --- */

.contact-page-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
    color: #333;
}

/* --- HORNÍ GRID (Adresa a Showroom) --- */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-box {
    flex: 1;
    min-width: 300px;
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.contact-box h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #000;
}

.contact-box p {
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.contact-box a {
    color: #D40D2B;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dotted #ccc;
}

.contact-box a:hover {
    color: #000;
    border-bottom: 1px solid #0056b3;
}

.label {
    color: #666;
    font-size: 0.9em;
    display: inline-block;
    width: 70px;
}

/* --- MAPA --- */
.map-section {
    margin-bottom: 50px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 350px;
}

/* --- NADPIS SEKCE TÝM --- */
/* Samotné karty týmu berou styl z vašeho externího CSS */
.team-section-title {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    margin-top: 50px;
    font-weight: bold;
}


/* --- RESPONSIVITA --- */
@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column;
    }
    .form-container {
        padding: 20px;
    }
}

/* --- FORMULÁŘ - KONTEJNER --- */
.form-container {
    background: #f4f4f4;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 50px;
}

/* Skryje ten systémový text Shoptetu "Máte nějaké otázky?...", 
   protože už tam máte vlastní nadpis a text. */
.form-container .site-msg {
    display: none !important; 
}

/* --- OPRAVA SAMOTNÉHO FORMULÁŘE --- */

/* Omezíme šířku formuláře a vycentrujeme ho, aby nebyl přes celou obrazovku */
.form-container form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left; /* Vrátíme text doleva, aby popisky lícovaly s poli */
}

/* Donutíme Shoptet tabulku chovat se jako sloupce pod sebou */
.form-container table, 
.form-container tbody, 
.form-container tr, 
.form-container td {
    display: block;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
}

/* Stylování popisků (Jméno, Email...) */
.form-container label {
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
    font-weight: bold;
    color: #333;
    text-align: left; /* Popisek vlevo nad polem */
}

/* Stylování políček */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container textarea {
    width: 100% !important;     /* Roztáhne pole na celou šířku boxu */
    box-sizing: border-box;     /* Aby padding nezvětšoval šířku */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-family: inherit;
}

/* Tlačítko Odeslat */
.form-container input[type="submit"],
.form-container button[type="submit"] {
    margin-top: 20px;
    width: 100%;                /* Tlačítko přes celou šířku (nebo dejte 'auto' pro malé) */
    cursor: pointer;
    /* Pokud chcete tlačítko červené jako na obrázku, Shoptet to asi udělá sám, 
       ale pro jistotu: */
    padding: 12px;
    font-weight: bold;
}