/* Base styles for large screens */
section {
    width: 100vw;
    min-height: calc(100vh - 97px); /* Changed to min-height to ensure it takes at least the full viewport height */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    overflow-x: hidden;
}

.background {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #e4e4e4;
    width: 100%;
    min-height: calc(100vh - 97px); /* Changed to min-height to ensure it takes at least the full viewport height */
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: hidden; /* Prevent horizontal scrolling */
}

@media (max-width: 768px) {
    section {
        min-height: calc(100vh - 72px);
    }
    .background {
        min-height: calc(100vh - 72px);
    }
}

.text-overlay {
    display: flex;
    flex-direction: column; /* Changed to column for better stacking on small screens */
    justify-content: space-between;
    align-items: center;
    background-color: #eeeeee;
    color: rgb(82, 82, 82);
    padding: 16px 32px;
    margin: 16px;
    z-index: 1;
    box-sizing: border-box;
    gap: 16px;
}
.contact{
    margin-top: 32px;
}

.info {
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column; /* Układa wszystkie elementy w kolumnie */
    align-items: center; /* Wyśrodkowanie elementów */
    gap: 16px; /* Odstęp między elementami */
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    min-width: 500px;
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.text-overlay p {
    text-align: center;
    width: 500px;
}

@media screen and (max-width: 768px) {
    .contact-form input,
    .contact-form textarea {
        min-width: 300px;
    }
    .text-overlay p {
        max-width: 300px;
    }
}

@media screen and (max-width: 500px) {
    .contact-form input,
    .contact-form textarea {
        min-width: 232px;
    }
    .text-overlay p {
        max-width: 232px;
    }
}

.contact-form textarea {
    resize: none; /* Prevent manual resizing */
    overflow: hidden; /* Hide scrollbar */
    min-height: 100px; /* Set a minimum height */
    border: 1px solid #cccccc;
}

.contact-form textarea:focus,
.contact-form input:focus {
    border: 1px solid #999999; /* Reduce border thickness on focus */
    outline: none; /* Remove default outline */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999999;
    opacity: 1; /* Ensure placeholder text is fully opaque */
}

.contact-form button {
    padding: 10px 20px;
    background-color: #525252;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: rgb(32, 32, 32);
}