.rent-car-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
}

.rent-car-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
    background: #34495e;
}

.rent-car-btn .icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* Popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    backdrop-filter: blur(2px);
}

/* Popup container */
.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2001;
}

.popup-header {
    background: #088e69;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.popup-header h2 {
    margin: 0;
    text-align: center;
    font-size: 24px;
    padding-right: 40px;
    color: #fff;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.popup-content {
    padding: 30px;
}

/* Tab buttons */
.tab-buttons {
    display: flex;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tab-btn.active {
    background: #088e69;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #e9ecef;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
    background: #34495e;
}

.form-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Animation classes */
.popup-enter {
    animation: popupEnter 0.3s ease-out;
}

.popup-exit {
    animation: popupExit 0.3s ease-in;
}

@keyframes  popupEnter {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes  popupExit {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
}

/* ENHANCED RESPONSIVE STYLES */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    .popup-container {
        max-width: 600px;
        width: 85%;
    }

    .rent-car-btn {
        bottom: 25px;
        right: 25px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .rent-car-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 20px;
    }

    .rent-car-btn .icon {
        font-size: 18px;
    }

    .popup-container {
        width: 92%;
        max-height: 85vh;
    }

    .popup-header {
        padding: 15px 20px;
    }

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

    .close-btn {
        font-size: 24px;
        width: 35px;
        height: 35px;
        top: 12px;
        right: 15px;
    }

    .popup-content {
        padding: 20px;
    }

    .tab-btn {
        font-size: 13px;
        padding: 12px 8px;
        min-height: 45px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Large phones */
@media (max-width: 480px) {
    .rent-car-btn {
        bottom: 80px;
        right: 15px;
        padding: 10px 18px;
        font-size: 13px;
        border-radius: 18px;
        gap: 8px;
    }

    .rent-car-btn .icon {
        font-size: 16px;
    }

    .popup-container {
        width: 95%;
        margin: 0;
        border-radius: 8px;
        max-height: 90vh;
    }

    .popup-header {
        padding: 12px 15px;
        border-radius: 8px 8px 0 0;
    }

    .popup-header h2 {
        font-size: 18px;
        padding-right: 30px;
    }

    .close-btn {
        font-size: 20px;
        width: 30px;
        height: 30px;
        top: 10px;
        right: 12px;
    }

    .popup-content {
        padding: 15px;
    }

    .tab-buttons {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .tab-btn {
        font-size: 12px;
        padding: 10px 6px;
        min-height: 40px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 16px;
        border-radius: 8px;
    }

    .form-group textarea {
        min-height: 70px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
        min-height: 45px;
    }

    .form-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

/* Small phones */
@media (max-width: 360px) {
    .rent-car-btn {
        bottom: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 12px;
        border-radius: 15px;
    }

    .rent-car-btn .icon {
        font-size: 14px;
    }

    .popup-container {
        width: 98%;
        max-height: 95vh;
    }

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

    .popup-content {
        padding: 12px;
    }

    .tab-btn {
        font-size: 11px;
        padding: 8px 4px;
        min-height: 35px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 10px;
    }

    .submit-btn {
        padding: 10px;
        font-size: 13px;
        min-height: 40px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .popup-container {
        max-height: 95vh;
        top: 2.5vh;
        transform: translateX(-50%);
    }

    .popup-header {
        padding: 10px 20px;
    }

    .popup-header h2 {
        font-size: 16px;
        color: #fff;
    }

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

    .tab-buttons {
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 12px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .rent-car-btn {
        box-shadow: 0 2px 8px rgba(44, 62, 80, 0.25);
    }

    .popup-container {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    }
}

/* Focus improvements for accessibility */
@media (prefers-reduced-motion: reduce) {
    .rent-car-btn,
    .tab-btn,
    .submit-btn,
    .close-btn,
    .form-group input,
    .form-group textarea,
    .form-group select {
        transition: none;
    }

    .popup-enter,
    .popup-exit {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .popup-container {
        background: #1a1a1a;
        color: #ffffff;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        background: #2a2a2a;
        border-color: #404040;
        color: #ffffff;
    }

    .tab-btn {
        background: #2a2a2a;
        color: #ffffff;
    }

    .tab-btn:hover:not(.active) {
        background: #404040;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .rent-car-btn:hover,
    .tab-btn:hover:not(.active),
    .submit-btn:hover {
        transform: none;
        box-shadow: initial;
    }

    .close-btn:hover {
        transform: none;
    }

    .rent-car-btn:active,
    .tab-btn:active,
    .submit-btn:active {
        transform: scale(0.95);
    }
}
.error{
    color: red;
}