/* Custom styles for PoDilu Golden Hook - Apple Style */

/* System font for native look */
* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Smooth transitions for form elements */
input:focus, select:focus {
    outline: none;
}

/* Apple-style input fields - ultra-thin borders, minimal shadows */
input[type="text"],
input[type="tel"] {
    border: 0.5px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: none;
    background-color: #ffffff;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
    outline: none;
}

/* Error state styling - Apple style */
input.error, select.error {
    border-color: #ef4444;
    background-color: #fef2f2;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input.error:focus, select.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Success state styling - Apple style */
input.success, select.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Animation for success message */
#successMessage {
    animation: slideDown 0.3s ease-out;
}

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

/* Loading state for submit button */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* City and warehouse dropdown styling - Apple style */
#cityDropdown,
#warehouseDropdown {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 0.5px solid #e5e7eb;
    border-radius: 10px;
}

#cityDropdown div:hover,
#warehouseDropdown div:hover {
    background-color: #f9fafb;
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Verified company name styling */
input.verified {
    border-color: #10b981 !important;
    background-color: #f0fdf4;
}

input.verified:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Field highlight animation for auto-filled fields - subtle Apple style */
.field-highlight {
    animation: fieldGlow 0.8s ease-in-out;
}

@keyframes fieldGlow {
    0% {
        background-color: #ffffff;
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
    50% {
        background-color: #fafafa;
        box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.06);
    }
    100% {
        background-color: #ffffff;
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* iOS Segmented Control Style */
.segmented-control {
    display: flex;
    background-color: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    gap: 0;
}

.segmented-control button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.segmented-control button.active {
    background-color: #ffffff;
    color: #6366f1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.segmented-control button:not(.active):hover {
    color: #374151;
}

/* Apple-style buttons - refined and elegant */
.btn-primary {
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.15);
    letter-spacing: 0.01em;
}

.btn-primary:hover:not(:disabled) {
    background-color: #4f46e5;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
    transform: translateY(-0.5px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(99, 102, 241, 0.15);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

