
/* the container must be positioned relative: */
.addressPicker {
    position: relative;
    display: inline-block;
}

.addressPicker-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 100000;
    /* position the addressPicker-testing items to be the same width as the container: */
    top: 100%;
    left: 0;
    right: 0;
    font-family: 'Roboto';
    color: var(--everfast-blue);
}

.addressPicker-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

/* when hovering an item: */
.addressPicker-items div:hover {
    background-color: #e9e9e9;
}

/* when navigating through the items using the arrow keys: */
.addressPicker-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

/* Add border pulse effect */
.searching {
    border: 2px solid #007bff;
    animation: pulse-border 1s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Interest Capture Section Styling */
#interest-capture-section {
    transition: all 0.3s ease-in-out;
    transform-origin: top center;
}

#interest-capture-section .card {
    border: 2px solid var(--text-gold, #EAAF46);
    background: linear-gradient(135deg, rgba(6, 87, 158, 0.95) 0%, rgba(6, 87, 158, 0.85) 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#interest-capture-section .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid var(--text-gold, #EAAF46) !important;
    color: white !important;
    font-family: 'Roboto', sans-serif !important;
    transition: all 0.3s ease;
}

#interest-capture-section .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #f3bd65 !important;
    box-shadow: 0 0 0 0.25rem rgba(243, 189, 101, 0.25) !important;
    color: white !important;
}

#interest-capture-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

#interest-capture-section .btn {
    transition: all 0.3s ease;
    transform: translateY(0);
}

#interest-capture-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#interest-capture-section .alert {
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #interest-capture-section .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    #interest-capture-section .btn {
        font-size: 0.9rem;
        min-width: 180px;
    }
}

/* Animation for slide-in effect */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#interest-capture-section.show {
    animation: slideInFromTop 0.3s ease-out;
}

/* Hide scrollbar during animation to prevent jump */
#interest-capture-section::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* "Not seeing your address?" button styling */
#show-interest-btn {
    /* Base styling */
    transition: all 0.3s ease !important;
    border: 2px solid rgba(6, 87, 158, 0.3) !important;
    background: rgba(6, 87, 158, 0.05) !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 500 !important;
    color: #06579E !important;
    
    /* Layout */
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    
    /* Transform and shadow */
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(6, 87, 158, 0.1) !important;
    
    /* Ensure proper display */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

#show-interest-btn:hover {
    /* Enhanced hover state */
    background: rgba(6, 87, 158, 0.1) !important;
    border-color: rgba(6, 87, 158, 0.6) !important;
    color: #06579E !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px rgba(6, 87, 158, 0.2) !important;
    text-decoration: none !important;
}

#show-interest-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(6, 87, 158, 0.15) !important;
}

#show-interest-btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(6, 87, 158, 0.25), 0 4px 15px rgba(6, 87, 158, 0.2) !important;
    outline: none !important;
    border-color: rgba(6, 87, 158, 0.8) !important;
}

#show-interest-btn i {
    transition: transform 0.3s ease;
    font-size: 1rem;
    color: var(--text-gold, #EAAF46);
    margin-right: 6px !important;
}

#show-interest-btn:hover i {
    transform: rotate(12deg) scale(1.1);
    color: #f3bd65;
}

/* Pulse animation for extra attention */
@keyframes gentle-pulse {
    0% {
        box-shadow: 0 2px 8px rgba(6, 87, 158, 0.1);
    }
    50% {
        box-shadow: 0 2px 12px rgba(6, 87, 158, 0.2);
    }
    100% {
        box-shadow: 0 2px 8px rgba(6, 87, 158, 0.1);
    }
}

#show-interest-btn {
    animation: gentle-pulse 3s ease-in-out infinite;
}

#show-interest-btn:hover {
    animation: none; /* Stop pulse on hover */
}