.a-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center; /* Yatayda ortala */
    align-items: center; /* Dikeyde ortala */
}

/* Popup content */
.popup-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

/* Popup header */
.popup-header {
    text-align: center;
    margin-bottom: 20px;
}

.popup-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.popup-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #000;
}

/* Form styling */
.rental-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1;
}

.rental-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.rental-form input,
.rental-form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

.rental-form button {
    background-color: #4CAF50;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.rental-form button:hover {
    background-color: #3e8e41;
}

/* Date and time input styling */
.date-time-input {
    position: relative;
}

.date-time-input i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

/* Animation for popup entrance */
@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .popup-content {
        width: 95%;
        padding: 20px 15px;
    }

    .rental-form input,
    .rental-form select,
    .rental-form button {
        font-size: 14px;
        padding: 10px;
    }

    .popup-header h2 {
        font-size: 20px;
    }
}
