html, body {
    min-height: 100%;
    padding: 0;
    margin: 0;
    font-family: Roboto, Arial, sans-serif;
    font-size: 18px;
    color: #666;
}

h1 {
    margin: 0 0 20px;
    font-weight: 900;
    color: #1c87c9;
}

p {
    margin: 0 0 5px;
}

.main-block {
    display: flex;
    flex-direction: row; /* Changed to row for side-by-side layout */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1c87c9;
    width: 100%; /* Full width */
}

.left-part {
    width: 20%; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.form-container {
    width: 30%;
}

.right-part {
    width: 50%; /* Adjust as needed */
    position: relative;
    overflow: hidden;
}

.right-part img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block; /* Remove any extra spacing */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    background: rgba(10,90,219,115);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.right-part .overlay h1, .right-part .overlay p {
    color: white;
}

form {
    padding: 25px;
    box-shadow: 0 2px 5px #f5f5f5;
    background: #f5f5f5;
    width: 100%;
    box-sizing: border-box; /* Make sure padding doesn't affect width */
}

.fas {
    margin: 25px 10px 0;
    font-size: 72px;
    color: #fff;
}

.fa-envelope {
    transform: rotate(-20deg);
}

.fa-at, .fa-mail-bulk {
    transform: rotate(10deg);
}

input, textarea {
    width: calc(100% - 18px);
    padding: 8px;
    margin-bottom: 20px;
    border: 1px solid #1c87c9;
    outline: none;
    box-sizing: border-box; /* Make sure padding doesn't affect width */
}

input::placeholder {
    color: #666;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    background: #1c87c9;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    cursor: pointer;
}

button:hover {
    background: #2371a0;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-block {
        flex-direction: column;
    }

    .left-part,
    .form-container,
    .right-part {
        width: 100%;
    }

    .left-part {
        align-items: center;
    }
}

