/* Location Checker Styles */

/* Location Input Container */
.location-input-wrapper {
    position: relative;
    width: 100%;
}

/* Autocomplete Input */
#locationInput {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

#locationInput:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#locationInput::placeholder {
    color: #9ca3af;
}

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    display: none; /* Hidden by default */
}

.suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    text-align: left;
}

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

.suggestion-item:hover {
    background: #f8fafc;
}

.suggestion-main {
    display: block;
    font-weight: 600;
    color: #1e293b;
}

.suggestion-sub {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.suggestion-main strong {
    font-size: 15px;
    color: #1f2937;
}

.suggestion-main mark {
    background: #fef3c7;
    padding: 0 2px;
    border-radius: 2px;
}

.badge-city {
    font-size: 11px;
    padding: 2px 6px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-weight: 600;
}

.suggestion-meta {
    font-size: 13px;
    color: #6b7280;
}

/* No Results */
.no-results {
    padding: 16px;
    text-align: center;
    color: #6b7280;
}

.no-results span {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.no-results small {
    font-size: 12px;
    color: #9ca3af;
}

/* Location Result Display */
.location-result {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-result.success {
    background: #d1fae5;
    border: 2px solid #10b981;
}

.location-result.warning {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.result-icon {
    font-size: 24px;
    line-height: 1;
}

.result-content {
    flex: 1;
}

.result-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: #1f2937;
}

.result-content small {
    display: block;
    font-size: 13px;
    color: #6b7280;
}

/* Waitlist Button */
.btn-waitlist {
    margin-top: 12px;
    width: 100%;
    padding: 10px 16px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-waitlist:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Submit Button States */
#locationBtn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

#locationBtn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Served Areas Hint */
.served-areas {
    margin-top: 8px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 4px;
    text-align: center;
}

.served-areas small {
    font-size: 12px;
    color: #6b7280;
}

/* Waitlist Modal */
#waitlistModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.waitlist-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#locationResult {
    margin-top: 12px;
    font-size: 14px;
    display: none;
    padding: 12px;
    border-radius: 8px;
}

#locationResult.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

#locationResult.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.waitlist-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
}

.waitlist-close:hover {
    color: #1f2937;
}

.waitlist-content h3 {
    color: #1e293b;
    font-size: 24px;
    margin-bottom: 10px;
}

.requested-location {
    font-weight: 700;
    color: #D97D54; /* Brand Orange */
}

.waitlist-content p {
    color: #64748b;
    margin-bottom: 24px;
}

/* Waitlist Form */
#waitlistForm .form-group {
    margin-bottom: 16px;
}

#waitlistForm label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

#waitlistForm input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

#waitlistForm input:focus {
    outline: none;
    border-color: #2563eb;
}

#waitlistForm button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#waitlistForm button[type="submit"]:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

#waitlistForm button[type="submit"]:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Waitlist Messages */
.waitlist-message {
    margin-top: 15px;
    font-weight: 600;
    color: #166534;
}

.success-message {
    text-align: center;
    padding: 24px;
    background: #d1fae5;
    border-radius: 8px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.success-message h4 {
    margin: 0 0 8px 0;
    color: #065f46;
    font-size: 20px;
}

.success-message p {
    margin: 0;
    color: #047857;
}

.error-message {
    padding: 12px 16px;
    background: #fee2e2;
    border: 2px solid #dc2626;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-icon {
    font-size: 20px;
}

.error-message p {
    margin: 0;
    color: #991b1b;
    font-size: 14px;
}

/* Hero Location Badge (if using Option 1) */
.service-area-badge {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.location-icon {
    font-size: 20px;
}

.location-text {
    flex: 1;
    min-width: 200px;
}

.location-text strong {
    font-weight: 600;
    color: #92400e;
}

.location-check {
    padding: 8px 16px;
    background: white;
    border: 2px solid #f59e0b;
    border-radius: 6px;
    color: #92400e;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.location-check:hover {
    background: #f59e0b;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .waitlist-content {
        padding: 24px;
    }
    
    .suggestion-item {
        padding: 10px 12px;
    }
    
    .location-result {
        padding: 10px 12px;
    }
    
    .service-area-badge {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .location-check {
        width: 100%;
    }
}
