/* Hlavný kontajner stránky */
.main-content {
    display: flex;
    justify-content: space-between;
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    gap: 40px; /* Pridaný medzikontajnerový odstup */
}

/* Text na ľavej strane */
.left-text {
    flex: 1;
    padding-right: 20px;
    font-family: 'Arial', sans-serif;
    color: #333;
    max-width: 40%;
}

/* Kontaktný formulár napravo */
.contact-form {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.contact-form h1 {
    text-align: center;
    color: #333;
}

.contact-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    resize: none;
    height: 100px;
    overflow-y: auto;
}

.contact-form .g-recaptcha {
    display: flex;
    justify-content: center;
    transform: scale(1);
    transform-origin: 50% 50%;
    margin-bottom: 15px;
}

.contact-form .contact-submit-button {
    width: 100%;
    padding: 12px;
    background-color: #74a277;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
}

.contact-form .contact-submit-button:hover {
    background-color: #5f8766;
}

.contact-form small {
    display: block;
    color: #666;
    margin-top: -15px;
    margin-bottom: 15px;
    font-size: 11px;
    padding-left: 10px;
}

.data-processing-consent {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    padding: 0 10px;
    line-height: 1.5;
}

.data-processing-consent a {
    color: #74a277;
    text-decoration: underline;
}

.data-processing-consent a:hover {
    color: #5f8766;
}

@media screen and (max-width: 768px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .left-text {
        padding: 0 20px;
        margin-bottom: 30px; /* Väčší odstup medzi blokmi */
        text-align: center;
        max-width: 100%;
    }

    .contact-form {
        max-width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    .contact-form .g-recaptcha {
        transform: scale(1);
        transform-origin: 0 0;
        width: 100%;
    }
}

@media screen and (min-width: 1200px) {
    .left-text {
        max-width: 50%; /* Väčší priestor pre text */
    }

    .contact-form {
        max-width: 550px; /* Väčší formulár na veľkých displejoch */
    }
}

@media screen and (min-width: 1600px) {
    .main-content {
        max-width: 1400px; /* viac priestoru pre celý obsah */
    }

    .left-text {
        max-width: 55%;
    }

    .contact-form {
        max-width: 600px;
    }
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: #74a277;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    text-align: center;
    max-width: 90%;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast.success { background-color: #74a277; }
.toast.error { background-color: #c0392b; }
.toast.recaptcha { background-color: #e67e22; }

.toast.hidden {
    display: none;
}

/* Responzívna úprava pre mobil */
@media (max-width: 600px) {
    .toast {
        right: 50%;
        left: 50%;
        transform: translate(-50%, -20px);
        width: 90%;
        max-width: 90%;
    }

    .toast.show {
        transform: translate(-50%, 0);
    }
}
