.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #05444c;
    padding: 60px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
    color: white;
    animation: popupSlideIn 0.3s ease forwards;
}

.popup-overlay .close-btn {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 40px;
    cursor: pointer;
    color: white;
    line-height: 1;
}

.popup-overlay h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 1px solid white;
    line-height: 50px;
    color: white;
}

.popup-overlay form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.popup-overlay .form-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.popup-overlay .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.popup-overlay .form-group input,
.popup-overlay .form-group textarea {
    padding: 8px;
    border: none;
    border-bottom: 1px solid white;
    background: transparent;
    color: white;
    font-size: 14px;
    line-height: 27px;
    width: 100%;
}

.popup-overlay .form-group input:focus,
.popup-overlay .form-group textarea:focus {
    outline: none;
}

.popup-overlay .form-group textarea {
    resize: none;
}

.popup-overlay .form-group ::placeholder {
    color: white;
}

.popup-overlay .submit-btn {
    background-color: #d2bb72;
    width: 150px;
    color: white;
    border: none;
    padding: 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
}

.popup-overlay .submit-btn:hover {
    background-color: #0075a8;
}

.popup-overlay .help-block.with-errors {
    color: #ffd2d2;
}

@keyframes popupSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-50px); opacity: 0; }
}

@media only screen and (max-width: 767px) {
    .popup-content { padding: 40px 20px; }
    .popup-overlay .form-row { display: grid; }
}
