@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html, body {
    margin: 0;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
}

.page {
    flex: 1;
    background-image: url('../images/pacvac-tausta1.png');
    background-size: cover;
    background-attachment: fixed;
}


.content {
    display: flex;
    flex-direction: column; 
    align-items: center;
    width: 100%;
    min-height: 100vh;
    
}

.column {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15rem;
}

.main-row {
    display: flex;
    flex-direction: row; 
    width: 100%;
    max-width: 1250px;
    gap: 4rem;
    padding-bottom: 5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

.txt-container {
    width: 100%;
    text-align: left;
    margin-top: 0;
}

.txt-container h2 {
    font-size: 1.5rem;
    letter-spacing: 0.1rem;
}

.form-container {
    width: 100%;
    max-width: 500px;
    background: #ffe876; 
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px); 
}

.form-container p {
    font-size: 0.7rem;
    color: #301304;
}

form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #301304;
    display: block;
}

input[type="text"],
input[type="email"],
input[type="company"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #000000;
    border-radius: 0.8rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: #ffe876;
    transition: all 0.3s ease;
    box-sizing: border-box; 
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(48, 19, 4, 0.1);
}

button[type="submit"] {
    background-color: #000000;
    color: #ffe876;
    padding: 1rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}

button[type="submit"]:hover {
    background-color: #ffe876;
    color: #000000;
    border: 1px solid #000000;
}


textarea {
    resize: vertical; 
    min-height: 120px;
}

.contacts-grid {
    display: flex;
    gap: 4rem; 
}

.contact-person {
    flex: 1; 
}

.contact-card h3 {
    font-size: 1.5rem;
    color: #301304;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #301304;
    display: inline-block;
}

.contact-card p {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: black;
}

.only-mobile {
    display: none !important;
}

.only-desktop {
    display: inline; 
    text-decoration: none;
    color: black;
    cursor: default;
}

.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    justify-content: center;
    align-items: center;
}
  
.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 80%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
  
.popup-content button {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    background-color: #000000;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}



@media (max-width: 1024px) {
    .only-mobile {
        display: inline !important;
        color: #000000;
        text-decoration: underline;
    }

    .only-desktop {
        display: none !important;
    }
}


@media (max-width: 1160px) {
    .main-row {
        flex-direction: column-reverse; 
        padding-top: 10rem;    
        padding-bottom: 3rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        gap: 2rem;            
    }

    .column {
        padding-top: 0 !important; 
        width: 100%;
    }

    .txt-container {
        width: 70%;
        text-align: center; 
    }

    .txt-container h1 {
        font-size: 1.8rem;   
        margin-top: 0;
    }

    .contacts-grid {
        flex-direction: column; 
        align-items: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .form-container {
        padding: 1.5rem;
        max-width: 60%;
    }

    input[type="text"],
    input[type="email"],
    input[type="company"],
    textarea {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .main-row {
        flex-direction: column-reverse; 
        padding-top: 10rem;    
        gap: 2rem;    
        width: 100%;
    }

    .column {
        padding-top: 0 !important; 
        width: 100%;
    }

    .txt-container {
        width: 100%;
        text-align: center; 
    }

    .txt-container h1 {
        font-size: 1.8rem;   
        margin-top: 0;
    }

    .contacts-grid {
        flex-direction: column; 
        align-items: center;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .form-container {
        padding: 1.5rem;
        max-width: 100%;
    }

    input[type="text"],
    input[type="email"],
    input[type="company"],
    textarea {
        margin-bottom: 1rem;
    }
}

