/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Card */
.popup-card {
    background: #ffffff;
    width: 90%;
    max-width: 440px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-card {
    transform: translateY(0);
}



/* Typography */
.popup-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #002441;
    margin: 10px 0 25px;
}

.popup-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 20px;
}

/* Input Field */
.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    margin-bottom: 25px;
    padding: 12px 16px;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
    border-color: #ef6e0b;
    box-shadow: 0 0 0 3px rgba(239, 110, 11, 0.1);
}

.country-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: #002441;
    border-right: 1px solid #eee;
    padding-right: 12px;
    margin-right: 12px;
}

.country-code img {
    width: 18px;
    margin-bottom: 2px;
    border-radius: 2px;
}

.car-input {
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.car-input::placeholder {
    color: #ccc;
    font-weight: 500;
}

/* Action Button */
.action-btn {
    width: 100%;
    background-color: #ef6e0b;
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background-color: #d65d00;
}

a.action-btn:hover {
    background-color: #d65d00;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #ddd;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider span {
    padding: 0 10px;
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* Brand Grid */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.brand-item {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    /* Rounded corners */
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.brand-item:hover {
    border-color: #ef6e0b;
    box-shadow: 0 4px 12px rgba(239, 110, 11, 0.1);
    transform: translateY(-2px);
}

.brand-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    /* Removed grayscale to clearer view of logos as per "clearly visible" request */
}

/* View All Link */
.view-all {
    display: inline-block;
    color: #ef6e0b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    padding-bottom: 5px;
}

.view-all:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .popup-card {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 50vh;
        border-radius: 20px 20px 0 0;
        padding: 24px;
        position: absolute;
        bottom: 0;
        transform: translateY(100%);
    }

    .popup-overlay.active .popup-card {
        transform: translateY(0);
    }

    .brand-grid {
        gap: 10px;
    }

    .brand-item {
        border-radius: 12px;
    }
}