@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Custom Google Autocomplete Dropdown Styling */
.pac-container {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 5px;
    z-index: 1002 !important;
    overflow: hidden;
}

.pac-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-item-query {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.pac-matched {
    font-weight: 600;
    color: #28A745;
}

.pac-icon {
    margin-right: 10px;
    color: #666;
}

.pac-item:last-child {
    border-bottom: none;
}

.pac-item-selected {
    background-color: #e8f5e9;
}

.pac-logo:after {
    display: none;
}

/* Hero section styling */
.hero-section {
    background-image: url('https://marketplace.gonje.com/images/gonje-experience-homepage.png');
    background-size: cover;
    background-position: center top;
    border-radius: 20px;
    padding: 30px 30px 60px 20px;
    margin: 20px auto;
    max-width: 1200px;
    position: relative;
    opacity: 0.95;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Prevent body scrolling when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Hero text styling */
.hero-text {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin: 0 0;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Animated arrow styling */
.arrow-down {
    text-align: center;
    margin: 15px 0;
    color: #28A745;
}

.arrow-down i {
    font-size: 30px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Modal and search input styling */
.shopnow-gonje-top-vendor-search-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    text-align: center;
    margin: 10px auto 0;
}

.shopnow-gonje-top-vendor-search-input,
.shopnow-gonje-top-vendor-search-div {
    width: 90%;
    padding: 16px;
    border: 2px solid #ccc;
    border-radius: 20px;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
    margin: 0 auto 0 auto;
    text-align: center;
    cursor: pointer;
    background-color: white;
}

/* No vendors link styling */
.no-vendors-link {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #666;
    text-decoration: underline;
    display: block;
    margin-bottom: 20px;
}

.no-vendors-link:hover {
    color: #28A745;
    text-decoration: underline;
}

/* Center placeholder text on larger screens */
@media (min-width: 992px) {
    .shopnow-gonje-top-vendor-search-input::placeholder,
    .shopnow-location-input::placeholder {
        text-align: center;
    }
}

.shopnow-gonje-top-vendor-search-input:hover,
.shopnow-gonje-top-vendor-search-div:hover {
    border-color: #70ab4b;
}

.shopnow-gonje-top-vendor-search-input:focus,
.shopnow-gonje-top-vendor-search-div:focus {
    border-color: #0056b3;
}

.shopnow-gonje-top-vendor-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.shopnow-gonje-top-vendor-search-modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    z-index: 1001;
    max-height: 90vh;
    margin: 20px 0;
    overflow-y: auto;
}

.shopnow-gonje-top-vendor-search-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
}

/* Vendor search container styling */
.shopnow-search-container {
    margin: 20px;
    text-align: center;
    width: calc(100% - 40px);
}

.shopnow-search-container input,
.shopnow-search-container button {
    padding: 12px;
    margin: 5px;
    font-size: 16px;
    width: 100%;
    border: 1px solid #28A745;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.shopnow-search-container input {
    background-color: #f9fcf5;
    outline: none;
}

.shopnow-search-container input:focus {
    border-color: #28A745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.shopnow-search-container button {
    background-color: #28A745;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.shopnow-search-container button:hover {
    background-color: #1e7e34;
    box-shadow: 0 3px 8px rgba(30, 126, 52, 0.3);
}

/* Loading spinner styles */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-text {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Vendor item styling - make entire item clickable */
.shopnow-vendor-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: calc(100% - 30px);
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}
.shopnow-vendor-item:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.shopnow-vendor-content {
    display: flex;
    align-items: center;
}
.shopnow-vendor-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #28A745;
}
.shopnow-vendor-details h3 {
    color: #28A745;
    margin-bottom: 5px;
}

.shopnow-search-container input[type="range"] {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.shopnow-search-container input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: #28A745;
    border-radius: 5px;
}

.shopnow-search-container input[type="range"]::-moz-range-track {
    height: 8px;
    background: #28A745;
    border-radius: 5px;
}

.shopnow-search-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #28A745;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    margin-top: -6px;
}

.shopnow-search-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #28A745;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}

.shopnow-radius-label {
    font-weight: bold;
    color: #28A745;
    display: block;
    margin: 10px 0;
}

/* Mailchimp Modal Styling */
.mailchimp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.mailchimp-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    margin: 20px 0;
    max-height: 90vh;
    overflow-y: auto;
}

.mailchimp-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
}

#mc_embed_signup {
    background: transparent;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

#mc_embed_signup h2 {
    font-size: 24px;
    font-weight: 600;
    color: #28A745;
    margin-bottom: 20px;
    text-align: center;
}

#mc_embed_signup .indicates-required {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

#mc_embed_signup .asterisk {
    color: #e74c3c;
}

#mc_embed_signup .mc-field-group {
    margin-bottom: 20px;
    width: 100%;
}

#mc_embed_signup label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

#mc_embed_signup input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

#mc_embed_signup input:focus {
    border-color: #28A745;
    outline: none;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

#mc_embed_signup .button {
    background-color: #28A745;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 10px;
}

#mc_embed_signup .button:hover {
    background-color: #1e7e34;
}

#mc_embed_signup .response {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

#mc_embed_signup #mce-error-response {
    color: #e74c3c;
    background-color: #fdecea;
}

#mc_embed_signup #mce-success-response {
    color: #28A745;
    background-color: #e8f5e9;
}

@media (max-width: 768px) {
    .hero-text {
        font-size: 32px;
    }

    .shopnow-gonje-top-vendor-search-div,
    .shopnow-location-input {
        font-size: 16px;
        padding: 14px;
    }

    .shopnow-gonje-top-vendor-search-modal-content,
    .mailchimp-modal-content {
        padding: 20px;
        width: 85%;
    }

    #mc_embed_signup h2 {
        font-size: 20px;
    }

    .arrow-down i {
        font-size: 24px;
    }
}
