/* Resetování základních stylů */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

/* Container pro centraci obsahu */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Layout dlaždic */
.contact-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 20px;
}

.bottom-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Styl pro jednotlivé dlaždice */
.tile {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 48%;

}

.tile h2 {
    margin-bottom: 10px;
}

.contact-form form label {
    display: block;
    margin-bottom: 5px;
}

.contact-form form input,
.contact-form form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form form button {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.flash-messages {
    margin: 20px 0;
}

.alert {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
    text-align: center;
    width: 500px;
}

.modal-content {
    padding: 20px;
}

.modal p {
    margin-bottom: 10px;
}

.modal button {
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.modal button:hover {
    background: #555;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
}

.modal.success {
    border: 5px solid green;
}

.modal.error {
    border: 5px solid red;
}


/* Responzivita pro mobilní zařízení */
@media (max-width: 768px) {
    .contact-container,
    .bottom-section {
        flex-direction: column;
    }

    .tile {
        max-width: 90%;
        margin-left: 5%;
    }

    .tile.map {
        margin-bottom: 20px;
    }
}
